Skip to content

Fix: Update tvdb to use v4 api and accept absolute episode number#321

Open
asfixia wants to merge 16 commits into
jkwill87:mainfrom
asfixia:Update-TVDB-v4-API
Open

Fix: Update tvdb to use v4 api and accept absolute episode number#321
asfixia wants to merge 16 commits into
jkwill87:mainfrom
asfixia:Update-TVDB-v4-API

Conversation

@asfixia

@asfixia asfixia commented Sep 29, 2025

Copy link
Copy Markdown

This PR updates mnamer’s TVDB integration to use the v4 API, since the old API is deprecated and will be dropped soon.

Key changes:

  • Migrated requests to the TVDB v4 API.
  • Added support for absolute episode numbers → these can now be translated into the standard Season x Episode format.
  • No API key is included in this PR, so CI tests that require authentication may fail until a valid key is configured.
  • Improve subtitles matching.
  • Allows methods different from move, added the parameter: --relocation-operation=(copy | copy-with-metadata | move | hardlink | symlink )
  • Allows series absolute numering matching when no reasonable season numer is defined.

Notes:

  • The TVDB website indicates the v2 API is deprecated. Updating now ensures future compatibility.
  • Please confirm if adopting v4 is the desired direction.

PS: I replaced with my own TVDB key API on code so it can works with tvdb API v4.

…copy-with-metadata | move | hardlink | symlink )

Relocation Methods:
Copy: Creates a copy of the file.
copy-with-metadata: Copy preserving the metadata.
move: The default relocation, move the file to the destination folder.
hardlink: Creates a hardlink to the file ( OS limitations still applies, for example: only between folders at the same driver)
symlink: Creates a symlink to the file ( PS: OS limitations still applies, windows depends of having admin rights )

Merge branch 'pr/150' into Adding-relocation-options-as-one-of-symlink-hardlink-move-copy
fix: Language parsing for undefined, we set it as default "english"
chore: Refactoring code and adding tests for absolute ordering and accept utf-8 characters
@jkwill87

jkwill87 commented May 9, 2026

Copy link
Copy Markdown
Owner

Hey @asfixia, I appreciate your work here. TVDB have been threatening to deprecate v3 of their API for the last 6 years. I can appreciate their motivation but IMO client PINs seem onerous for end users. If they ever get around to disabling v3 I'll make sure to revisit this implementation.

jkwill87 pushed a commit that referenced this pull request May 22, 2026
Bumps
[pytest-rerunfailures](https://github.com/pytest-dev/pytest-rerunfailures)
from 16.2 to 16.3.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-rerunfailures/blob/master/CHANGES.rst">pytest-rerunfailures's
changelog</a>.</em></p>
<blockquote>
<h2>16.3 (2026-05-22)</h2>
<p>Features
++++++++</p>
<ul>
<li>
<p>Add <code>--reruns-mode</code> option (<code>strict</code> or
<code>append</code>). With <code>append</code>,
marker reruns and the global <code>--reruns</code> / <code>reruns</code>
ini setting are summed
instead of the marker taking strict priority. Default is
<code>strict</code> so
existing behaviour is unchanged.
Fixes
<code>[#321](pytest-dev/pytest-rerunfailures#321)
&lt;https://github.com/pytest-dev/pytest-rerunfailures/issues/321&gt;</code>_.</p>
</li>
<li>
<p>Add <code>--rerun-show-tracebacks</code> option to display tracebacks
from failed
attempts that were retried, including tests that eventually passed. The
rerun summary section is emitted automatically when the flag is set, so
<code>-rR</code> is no longer required to see the tracebacks.
Fixes
<code>[#156](pytest-dev/pytest-rerunfailures#156)
&lt;https://github.com/pytest-dev/pytest-rerunfailures/issues/156&gt;</code>_.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest-rerunfailures/commit/4b3a2200b07b357cecfe192f4997f35764869c6f"><code>4b3a220</code></a>
Preparing release 16.3</li>
<li><a
href="https://github.com/pytest-dev/pytest-rerunfailures/commit/d17f3be1c8cc257c29cd7d7e815d3c52867b1276"><code>d17f3be</code></a>
feat: add --reruns-mode option to sum marker and global reruns (<a
href="https://redirect.github.com/pytest-dev/pytest-rerunfailures/issues/321">#321</a>)
(<a
href="https://redirect.github.com/pytest-dev/pytest-rerunfailures/issues/328">#328</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-rerunfailures/commit/4a00facae37246c00801390039286d322df6e322"><code>4a00fac</code></a>
Add --rerun-show-tracebacks to surface retried failures (<a
href="https://redirect.github.com/pytest-dev/pytest-rerunfailures/issues/329">#329</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-rerunfailures/commit/9f792d9efe6bf0218e7ba2734257af2d5165ca3f"><code>9f792d9</code></a>
Back to development: 16.3</li>
<li>See full diff in <a
href="https://github.com/pytest-dev/pytest-rerunfailures/compare/16.2...16.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest-rerunfailures&package-manager=uv&previous-version=16.2&new-version=16.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants