Conversation
flexget/plugins/filter/series.py
Outdated
|
|
||
| def __eq__(self, other): | ||
| if not isinstance(other, Season): | ||
| return NotImplemented |
|
With regards to guessit, when it returns type 'episode' with a season, but not an episode number, is that a reliable indication of season pack? Also, from IRC: Switch (at least by default) to not download season packs once individual episodes have already been downloaded from a given season. Possibly allow an option to define how many individual eps are allowed to be downloaded and still consider getting a full season pack. |
|
Dunno about guessit, even if that were to case, I plan to add support for partial season packs ( @Toilal does guessit have /will have explicit season pack support? |
|
It has support for this
Le 4 mars 2017 12:06 AM, "Or Carmi" <notifications@github.com> a écrit :
… Dunno about guessit, even if that were to case, I plan to add support for
partial season packs (Foo.S01.PART1-Flexget) and that would require
explicit support.
@Toilal <https://github.com/Toilal> does guessit have /will have explicit
season pack support?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1710 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABHJvpRwU_hwAjGf50GV_UdgzY2TJQvOks5riJzcgaJpZM4MMVOy>
.
|
|
Oh, I guess its a matter of just updating the flexget plugin. You have an open pr for this right? |
|
I'm not sure flexget reads the part property returned by guessit. And yes,
it should be updated, I opened a pull request some times ago but 1 or 2
tests was failing and i don't have time to investigate more.
Le 4 mars 2017 6:50 AM, "Or Carmi" <notifications@github.com> a écrit :
… Oh, I guess its a matter of just updating the flexget plugin. You have an
open pr for this right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1710 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABHJvtYVWJojax9WphK3kWc6RMHILBxCks5riPuNgaJpZM4MMVOy>
.
|
gazpachoking
left a comment
There was a problem hiding this comment.
I like the recent changes. I'm wondering if the logic dealing with comparing seasons to episodes should be more explicitly handled, rather than comparing against an unknown season/entity object. (I'm not sure the way you are doing it is bad though, just a vague notion I had.)
flexget/plugins/filter/series.py
Outdated
|
|
||
| @property | ||
| def is_season(self): | ||
| return False |
There was a problem hiding this comment.
Where are we using the Episode model where we have to ask if it's a season? Also, if this actually makes sense, how about just is_season = False rather than making a property method?
There was a problem hiding this comment.
We're using it in a bunch of places actually, like
Flexget/flexget/plugins/filter/series.py
Line 1486 in 5b2988d
What's the benefit of setting a class variable as opposed to a property method?
There was a problem hiding this comment.
nm, did it already, pushing soon
flexget/plugins/filter/series.py
Outdated
| def __eq__(self, other): | ||
| if not isinstance(other, Episode): | ||
| return NotImplemented | ||
| if not isinstance(other, (Episode, Season)): |
There was a problem hiding this comment.
An episode can be equal to a season?
|
I changed a lot of the comparison stuff. A lot of it was just dumb copy paste form Episode. It should make more sense now |
…xget/Flexget into season_packs # Conflicts: # flexget/plugins/filter/series.py
…xget/Flexget into season_packs # Conflicts: # flexget/plugins/filter/series.py
|
I installed this branch for testing. From my (admittedly limited) testing this is not working with (test filename: Show.Name.S02.720p.HDTV.x264-GROUP.torrent) |
|
Thanks for testing. Please paste config and debug logs. Admittedly, I did not test this with |
|
Here it is. I should've posted that in the first place, my bad. Config: Debug log: |
|
Hmm, looks like it didn't parse that to be a season pack. |
|
The only thing that added to the log was this: I think guess_name only tries to match it as an episode, not a season pack, and gives up if it's not an episode. |
|
Yeah, i think you're right. Good catch, I'll test and fix soon |
|
try now @tubedogg |
|
@liiight Awesome, works a treat now. 👍 Thanks for doing this - super-excited to finally have season pack support! |
|
sure thing. while I have your attention, it'd be great if you could also test |
|
I modified the BTN search plugin to support season packs and gave it a go with (For the BTN plugin, do you want me to just tell you what I did and you can include it as part of this PR, or just hold onto it until this is released and submit a PR for BTN?) |
|
You can tell me, but it's outside the scope of this pr |
|
I just put it in a gist, two quick changes. https://gist.github.com/tubedogg/3ae75ab928b8a21fc9b5a51a7cf59ac6 |
Motivation for changes:
Native season pack support is long overdue. Design
Detailed changes:
Seasontable in series DBReleasetable toEpisodeReleaseandSeasonReleaseseason_packsconfig: boolean, integer,alwaysand 'only'. These will affect episode threshold control:By default (or by passing
season_packs: yesthe default episode threshold will be set to 0, meaning that if a series has 1 or more episode with a downloaded release, a season pack will be rejected.By passing a specific integer (
season_packs: 5for example), that threshold can be raised.Setting
season_packs: alwayswill always accept the season pack, regardless of how many episodes were already downloaded for the series.By setting
season_packs: only, series plugin will accept only season packs, and reject all episodes.All modes still abide to checking if season is not completed.
api_tvmaze,tvmaze_lookupandest_release_series_tvmazeConfig usage if relevant (new plugin or updated schema):
Existing issues:
is_season_packcall.To Do:
- [ ] Add support for partial season packs (will not mark season as complete)TBD, this does not fit well with the current DB relations and flownext_series_episodesto take completed season into account.next_series_seasons