You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable TMDB Title Check / Refactor TMDB File Grouping Check
- the tmdb title check was from the old tvdb implementation and wasn't functional after changes
- use nested list comprehension to condense the tmdb file grouping check
- don't check for episode groups when the tmdb type is a movie
- log the tmdb type along with the id
ifnottmdb_title: tmdb_title='N/A (CRITICAL: Removed from TMDB or Missing Data) - Falling Back to AniDB Ordering!'# Account for rare cases where Shoko has a TMDB ID that returns no data
tmdb_title_log='N/A (CRITICAL: Removed from TMDB or Missing Data) - Falling Back to AniDB Ordering!'ifnottmdb_titleelsetmdb_title# Account for rare cases where Shoko has a TMDB ID that returns no data
ifnottmdb_group_sizeandtmdb_ep_data: episode_source, season, episode_number='(TMDB): ', tmdb_ep_data['SeasonNumber'], tmdb_ep_data['EpisodeNumber'] # Grab TMDB info when possible and enabled
279
+
iftmdb_ep_dataandnottmdb_group: episode_source, season, episode_number='(TMDB): ', tmdb_ep_data['SeasonNumber'], tmdb_ep_data['EpisodeNumber'] # Grab TMDB info when possible and enabled
281
280
else: episode_number=episode_data['AniDB']['EpisodeNumber'] # Fallback to AniDB info
ifnottmdb_title: tmdb_title='N/A (CRITICAL: Removed from TMDB or Missing Data) - Falling Back to AniDB Ordering!'# Account for rare cases where Shoko has a TMDB ID that returns no data
tmdb_title_log='N/A (CRITICAL: Removed from TMDB or Missing Data) - Falling Back to AniDB Ordering!'ifnottmdb_titleelsetmdb_title# Account for rare cases where Shoko has a TMDB ID that returns no data
ifnottmdb_group_sizeandtmdb_ep_data: episode_source, season, episode_number='(TMDB): ', tmdb_ep_data['SeasonNumber'], tmdb_ep_data['EpisodeNumber'] # Grab TMDB info when possible and enabled
152
+
iftmdb_ep_dataandnottmdb_group: episode_source, season, episode_number='(TMDB): ', tmdb_ep_data['SeasonNumber'], tmdb_ep_data['EpisodeNumber'] # Grab TMDB info when possible and enabled
154
153
else: episode_number=episode_data['AniDB']['EpisodeNumber'] # Fallback to AniDB info
155
154
156
155
Log.info(' Season %s %s'% (episode_source, season))
0 commit comments