Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Fix/dated show name #54

Merged
merged 5 commits into from
Aug 28, 2019
Merged

Fix/dated show name #54

merged 5 commits into from
Aug 28, 2019

Conversation

fleXible
Copy link
Contributor

Unfortunately this became a rather large PR, but I tried to have good documentation in the commit messages.

The series name specifiers %sn, %s.b, %s_n and %sN, %s.N, %s_N were
based on buggy code from MoviesFormat.

The new implementation is based on the correctly working SeriesFormat code and
proper test cases were added.

See: nzbget#52
Since the %desc is not supported by guessit, it would always be empty.
Furthermore no documentation was provided and all dated test cases used it.

The specifier was removed and the test cases adjusted accordingly.

See: nzbget#52
Across the formats, different specifiers are either buggy or undocumented.
To provide a safe way for users to migrate, a deprecation notice has been added.

Mapping tuples now can have a third field with a deprecation message that is
shown to the user as Warning, when the specifier is replaced.

See: nzbget#52
Specifiers %t, %.t, %_t are meant for movie titles and are
undocumented for DatedFormat.

Newly introduced feature to deprecate specifiers is used to inform user.

Closes nzbget#52
Specifiers %tT, %t.T, %t_T (original letter case) were converting case
and the test case wrongly checked for case transformation.

Naming of variables has been changed, so the ones holding the transformed
data start with a "t".

Test cases have been adjusted or extended accordingly.

Closes nzbget#52
@hugbug hugbug merged commit 314f9f4 into nzbget:master Aug 28, 2019
@hugbug
Copy link
Member

hugbug commented Aug 28, 2019

Thank you very much!

@fleXible fleXible deleted the fix/dated-show-name branch August 29, 2019 19:10
@fleXible
Copy link
Contributor Author

You're welcome, these are just the changes I had to make to get it working for me ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants