Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
eb4d6e2
Save progress
Buried-In-Code Apr 10, 2025
46c2cd4
Work on streamlining main functions
Buried-In-Code Apr 11, 2025
2bf0540
Work on caching
Buried-In-Code Apr 15, 2025
6a58c11
Work on tests
Buried-In-Code Apr 15, 2025
bdc1881
Manually update doc images
Buried-In-Code Apr 15, 2025
5adc3ff
Remove caching, go back to file based checking
Buried-In-Code May 10, 2025
cfff330
Update dev workspace
Buried-In-Code May 10, 2025
5f43038
Generate new screengrabs with rich-codex
github-actions[bot] May 10, 2025
fbf4ed8
Fix service.find
Buried-In-Code May 10, 2025
94376b4
Replace python-plexapi with custom Json service
Buried-In-Code May 11, 2025
e658a4a
Generate new screengrabs with rich-codex
github-actions[bot] May 11, 2025
7021ccd
Add main entry
Buried-In-Code May 11, 2025
e480778
Add workflow permissions
Buried-In-Code May 11, 2025
12b71e0
Generate new screengrabs with rich-codex
github-actions[bot] May 11, 2025
d7d35d3
Remove permissions from testing workflow
Buried-In-Code May 12, 2025
7cc9552
Fix Plex tests
Buried-In-Code May 12, 2025
7c761ff
Load env variables in workflow
Buried-In-Code May 12, 2025
3a70321
Fix tests
Buried-In-Code May 12, 2025
1da75f7
Generate new screengrabs with rich-codex
github-actions[bot] May 12, 2025
7dae62d
Read test files as UTF-8
Buried-In-Code May 12, 2025
20d7722
Click 8.2.0 breaks typer
Buried-In-Code May 12, 2025
90d1177
Generate new screengrabs with rich-codex
github-actions[bot] May 12, 2025
f4fca8b
Dependency update
Buried-In-Code May 14, 2025
51cdcec
Rename Mediux API Key to Mediux Token
Buried-In-Code May 16, 2025
21eaa8b
Fix argument
Buried-In-Code May 16, 2025
22b7a56
Updates and tidyups
Buried-In-Code May 25, 2025
c462dd2
Fix testing workflow
Buried-In-Code May 25, 2025
195ba05
Handle when seasons name is None
Buried-In-Code Jun 4, 2025
e87c02a
Caching (#47)
Buried-In-Code Jun 18, 2025
14607ed
Fix label removal
Buried-In-Code Jun 26, 2025
f10fcc2
Fix Jellyfin schema ProductionYear for Nullable instances
Buried-In-Code Jul 15, 2025
7a2a39f
Fix service_cache connection
Buried-In-Code Jul 15, 2025
9628957
Add FileSize limit (#50)
Buried-In-Code Jul 15, 2025
37ebccc
Fix service_cache, forgot to commit
Buried-In-Code Jul 20, 2025
a6fb882
Dependency updates
Buried-In-Code Jul 21, 2025
2d80755
Fix argument order in remove_labels method call (#54)
mandyyli Aug 31, 2025
68ef8be
Add user selection when multiple sets (#56)
Buried-In-Code Sep 13, 2025
ad26ff2
PEP-0639 (#57)
Buried-In-Code Sep 15, 2025
606a9b1
Add support for Py3.14
Buried-In-Code Oct 7, 2025
97d7cb0
Dev tweaks
Buried-In-Code Oct 9, 2025
b63af3f
Improve Jellyfin authorization, Closes #60
Buried-In-Code Nov 3, 2025
0d327cd
Improve large file size error
Buried-In-Code Jan 22, 2026
c1edf33
Catch timeouts gracefully
Buried-In-Code Feb 2, 2026
f8bab63
Unified cache (#64)
Buried-In-Code Feb 4, 2026
580f6a0
Re-add warning for too large image file
Buried-In-Code Feb 7, 2026
fd3539a
Use less rules in output
Buried-In-Code Feb 7, 2026
1df8073
Update README
Buried-In-Code Feb 7, 2026
1e7874f
Season str typing (#65)
Buried-In-Code Feb 10, 2026
8f0ec2c
Use -1 as default in cache
Buried-In-Code Feb 11, 2026
b94c31a
Fix workflows
Buried-In-Code Feb 11, 2026
2f6a0b5
Remove names from publishing workflow
Buried-In-Code Feb 11, 2026
1a0783f
Excluded usernames are lower priority
Buried-In-Code Feb 17, 2026
259fdc6
Generate new screengrabs with rich-codex
github-actions[bot] Feb 17, 2026
ebb29a7
Update dependencies
Buried-In-Code Feb 17, 2026
b47ef67
Fix tests
Buried-In-Code Feb 17, 2026
068d7bb
Generate new screengrabs with rich-codex
github-actions[bot] Mar 5, 2026
e4874f0
Switch from pre-commit to prek
Buried-In-Code Mar 5, 2026
ca05163
Fix workflows
Buried-In-Code Mar 5, 2026
84c91a4
Generate new screengrabs with rich-codex
github-actions[bot] Mar 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .editorconfig

This file was deleted.

111 changes: 85 additions & 26 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,57 +1,116 @@
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
* text=auto

.gitattributes export-ignore
.gitignore export-ignore
#
# The above will handle all files NOT found below
#

*.md text diff=markdown
# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.sql text
*.RTF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.tab text
*.tsv text
*.txt text
*.sql text
*.epub diff=astextplain

*.jpg binary
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as text by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.eps binary

# Scripts
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.fish text eol=lf
*.ps1 text eol=crlf
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

*.csv text
# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary

# C#
*.cs text diff=csharp
*.cshtml text diff=html
*.csproj text eol=crlf
*.csx text diff=csharp
*.sln text eol=crlf

# Java
*.gradle text diff=java
*.gradle.kts text diff=kotlin
*.groovy text diff=java
*.java text diff=java
*.kt text diff=kotlin
*.scala text diff=java

# Python
# Text files where line endings should be preserved
*.patch -text

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
# Apply override to all files in the directory
*.md linguist-detectable
# Basic .gitattributes for a python repo.

# Source files
# ============
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyi text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python

# Binary files
# ============
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary

# Jupyter notebook
*.ipynb text eol=lf

# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).
# Fix syntax highlighting on GitHub to allow comments
.vscode/*.json linguist-language=JSON-with-Comments
19 changes: 0 additions & 19 deletions .github/dependabot.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Linting

on:
push:
branches:
- main
paths-ignore:
- docs/**
pull_request:
branches:
- main
paths-ignore:
- docs/**

env:
PY_VERSION: '3.10'

jobs:
prek:
permissions:
contents: read
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PY_VERSION }}
- name: Install project
run: uv sync --locked --dev --all-extras --managed-python
- name: Run prek
run: uv run prek run -a --skip ty
55 changes: 43 additions & 12 deletions .github/workflows/publishing.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,72 @@
name: Publishing

on: push
on:
push:
branches:
- main
paths-ignore:
- docs/**
pull_request:
branches:
- main
paths-ignore:
- docs/**

env:
PY_VERSION: 3.14

jobs:
build:
name: Build
permissions:
contents: read
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: '3.13'
- name: Install pypa/build
run: pip install build
- name: Build a binary wheel and a source tarball
run: python -m build
python-version: ${{ env.PY_VERSION }}
- name: Install project
run: uv sync --locked --no-dev
- name: Run build
run: uv build
- uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
validate:
needs:
- build
permissions: {}
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PY_VERSION }}
- name: Validate dist
run: uv run --with twine twine check dist/*

publish:
environment:
name: pypi
url: https://pypi.org/p/Mediux-Posters
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
- validate
permissions:
id-token: write
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@v1
30 changes: 21 additions & 9 deletions .github/workflows/rich-codex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,39 @@ name: Rich Codex

on:
push:
branches:
- main
paths:
- .github/workflows/rich-codex.yaml
- README.md
- mediux_posters/__main__.py
- mediux_posters/cli/**
pull_request:
branches:
- main
paths:
- .github/workflows/rich-codex.yaml
- README.md
- mediux_posters/cli/**
workflow_dispatch:

permissions:
contents: write
env:
PY_VERSION: "3.10"

jobs:
rich_codex:
permissions:
contents: write
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
- name: Setup Python
run: uv python install '3.13'
with:
python-version: ${{ env.PY_VERSION }}
- name: Install project
run: uv sync --dev

run: uv sync --locked --dev --all-extras --managed-python
- name: Generate terminal images with rich-codex
uses: ewels/rich-codex@v1
uses: ewels/rich-codex@v1.2.11
with:
commit_changes: true
clean_img_paths: true
clean_img_paths: docs/img/*.svg
Loading