-
-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mass refactor tv.py #8706
mass refactor tv.py #8706
Changes from 6 commits
83e529a
a3055a7
e36b6fb
8a67418
89546f4
6989d8c
7ba09ac
0bcd73f
6850259
846aa4a
754e34f
c20da34
ae3e0ff
cb4c31b
2a6deff
4735005
9614388
0ac7c4c
7b58831
18c4a7d
b44dc29
6340a58
212444f
dacdd68
140482a
8e44069
735ea0a
0fb6c6b
bae210c
a6ed3a4
b96ea86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -76,7 +76,7 @@ def make_result(cls, result_dict): | |||||
return show[0] | ||||||
|
||||||
show = show[1] | ||||||
episode_objects = [show.getEpisode(result_dict.get("season"), ep) for ep in result_dict.get("episodes").split("|") if ep] | ||||||
episode_objects = [show.get_episode(result_dict.get("season"), ep) for ep in result_dict.get("episodes").split("|") if ep] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method call - episode_objects = [show.get_episode(result_dict.get("season"), ep) for ep in result_dict.get("episodes").split("|") if ep]
+ episode_objects = [show.getEpisode(result_dict.get("season"), ep) for ep in result_dict.get("episodes").split("|") if ep] Committable suggestion
Suggested change
|
||||||
result = cls(episode_objects) | ||||||
result.from_json(result_dict) | ||||||
result.show = show | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -164,15 +164,15 @@ def split_result(obj): | |||||
|
||||||
want_ep = True | ||||||
for ep_num in parsed_obj.episode_numbers: | ||||||
if not obj.show.wantEpisode(season, ep_num, obj.quality): | ||||||
if not obj.show.want_episode(season, ep_num, obj.quality): | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method call - if not obj.show.want_episode(season, ep_num, obj.quality):
+ if not obj.show.wantEpisode(season, ep_num, obj.quality): Committable suggestion
Suggested change
|
||||||
logger.debug("Ignoring result: " + new_nzb) | ||||||
want_ep = False | ||||||
break | ||||||
if not want_ep: | ||||||
continue | ||||||
|
||||||
# get all the associated episode objects | ||||||
ep_obj_list = [obj.show.getEpisode(season, ep) for ep in parsed_obj.episode_numbers] | ||||||
ep_obj_list = [obj.show.get_episode(season, ep) for ep in parsed_obj.episode_numbers] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method call - ep_obj_list = [obj.show.get_episode(season, ep) for ep in parsed_obj.episode_numbers]
+ ep_obj_list = [obj.show.getEpisode(season, ep) for ep in parsed_obj.episode_numbers] Committable suggestion
Suggested change
|
||||||
|
||||||
# make a result | ||||||
cur_obj = classes.NZBDataSearchResult(ep_obj_list) | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -222,7 +222,7 @@ def _download_propers(self, proper_list): | |||||
continue | ||||||
|
||||||
# get the episode object | ||||||
episode_object = proper.show.getEpisode(proper.season, proper.episode) | ||||||
episode_object = proper.show.get_episode(proper.season, proper.episode) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method call - episode_object = proper.show.get_episode(proper.season, proper.episode)
+ episode_object = proper.show.getEpisode(proper.season, proper.episode) Committable suggestion
Suggested change
|
||||||
|
||||||
# make the result object | ||||||
result = proper.provider.get_result([episode_object]) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
cache: 'yarn'
withactions/setup-node@v4
while runningnpm install -g yarn
seems redundant. If Yarn is being used, consider removing thenpm install -g yarn
command or clarify the necessity of this approach.