[TV] Prefix child media types with "show."
This commit is contained in:
Regular → Executable
+1
-1
@@ -26,7 +26,7 @@ class Episode(MediaBase):
|
||||
# Add Season
|
||||
episode_info = {
|
||||
'_t': 'media',
|
||||
'type': 'episode',
|
||||
'type': 'show.episode',
|
||||
'identifiers': identifiers,
|
||||
'parent_id': parent_id,
|
||||
'info': info, # Returned dict by providers
|
||||
|
||||
Regular → Executable
+2
-2
@@ -14,7 +14,7 @@ class EpisodeLibraryPlugin(LibraryBase):
|
||||
addEvent('library.identifier', self.identifier)
|
||||
|
||||
def query(self, media, first = True, condense = True, include_identifier = True, **kwargs):
|
||||
if media.get('type') != 'episode':
|
||||
if media.get('type') != 'show.episode':
|
||||
return
|
||||
|
||||
related = fireEvent('library.related', media, single = True)
|
||||
@@ -43,7 +43,7 @@ class EpisodeLibraryPlugin(LibraryBase):
|
||||
return titles
|
||||
|
||||
def identifier(self, media):
|
||||
if media.get('type') != 'episode':
|
||||
if media.get('type') != 'show.episode':
|
||||
return
|
||||
|
||||
identifier = {
|
||||
|
||||
Regular → Executable
+2
-2
@@ -14,7 +14,7 @@ class SeasonLibraryPlugin(LibraryBase):
|
||||
addEvent('library.identifier', self.identifier)
|
||||
|
||||
def query(self, media, first = True, condense = True, include_identifier = True, **kwargs):
|
||||
if media.get('type') != 'season':
|
||||
if media.get('type') != 'show.season':
|
||||
return
|
||||
|
||||
related = fireEvent('library.related', media, single = True)
|
||||
@@ -44,7 +44,7 @@ class SeasonLibraryPlugin(LibraryBase):
|
||||
return titles
|
||||
|
||||
def identifier(self, media):
|
||||
if media.get('type') != 'season':
|
||||
if media.get('type') != 'show.season':
|
||||
return
|
||||
|
||||
return {
|
||||
|
||||
Regular → Executable
+1
-1
@@ -116,7 +116,7 @@ class EpisodeSearcher(SearcherBase, ShowTypeBase):
|
||||
log.info2('Too early to search for %s, %s', (too_early_to_search, query))
|
||||
|
||||
def correctRelease(self, release = None, media = None, quality = None, **kwargs):
|
||||
if media.get('type') != 'episode':
|
||||
if media.get('type') != 'show.episode':
|
||||
return
|
||||
|
||||
retention = Env.setting('retention', section = 'nzb')
|
||||
|
||||
Regular → Executable
+1
-1
@@ -28,7 +28,7 @@ class Season(MediaBase):
|
||||
# Add Season
|
||||
season_info = {
|
||||
'_t': 'media',
|
||||
'type': 'season',
|
||||
'type': 'show.season',
|
||||
'identifiers': identifiers,
|
||||
'parent_id': parent_id,
|
||||
'info': info, # Returned dict by providers
|
||||
|
||||
Reference in New Issue
Block a user