1.0.1 Release
- Update version number - Update binary requirements (Now none) - Update seasons to fall back as season 1 if they are the first in a sequence - Update special counter and episode number to both use `isinstance()` for better special(s) detection
This commit is contained in:
parent
c6f3ade6c6
commit
192a915834
@ -25,10 +25,9 @@ class CR(Service):
|
|||||||
"""
|
"""
|
||||||
Service code for Crunchyroll
|
Service code for Crunchyroll
|
||||||
Author: TPD94
|
Author: TPD94
|
||||||
Version: 1.0.0
|
Version: 1.0.1
|
||||||
Authorization: Cookies for web endpoints, credentials for TV endpoints, both for both
|
Authorization: Cookies for web endpoints, Credentials for TV endpoints, Cookies/Credentials for both. Cookies required.
|
||||||
Security: FHD@L3
|
Security: FHD@L3
|
||||||
Binary Requirements: SubtitleEdit, put the portable version in a folder named SubtitleEdit in /unshackle/binaries
|
|
||||||
Use Series ID/URL (for example - https://www.crunchyroll.com/series/GG5H5XQ7D/kaiju-no-8) or Series ID (for example - GG5H5XQ7D).
|
Use Series ID/URL (for example - https://www.crunchyroll.com/series/GG5H5XQ7D/kaiju-no-8) or Series ID (for example - GG5H5XQ7D).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -37,10 +36,9 @@ class CR(Service):
|
|||||||
help="""
|
help="""
|
||||||
Service code for Crunchyroll\n
|
Service code for Crunchyroll\n
|
||||||
Author: TPD94\n
|
Author: TPD94\n
|
||||||
Version: 1.0.0\n
|
Version: 1.0.1\n
|
||||||
Authorization: Cookies for web endpoints, Credentials for TV endpoints, Cookies/Credentials for both. Cookies required.\n
|
Authorization: Cookies for web endpoints, Credentials for TV endpoints, Cookies/Credentials for both. Cookies required.\n
|
||||||
Security: FHD@L3\n
|
Security: FHD@L3\n
|
||||||
Binary Requirements: SubtitleEdit, put the portable version in a folder named SubtitleEdit in /unshackle/binaries\n
|
|
||||||
Use Series ID/URL (for example - https://www.crunchyroll.com/series/GG5H5XQ7D/kaiju-no-8) or Series ID (for example - GG5H5XQ7D).
|
Use Series ID/URL (for example - https://www.crunchyroll.com/series/GG5H5XQ7D/kaiju-no-8) or Series ID (for example - GG5H5XQ7D).
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
@ -235,7 +233,7 @@ class CR(Service):
|
|||||||
for episode in episodes_response['data']:
|
for episode in episodes_response['data']:
|
||||||
|
|
||||||
# If the episode doesn't have a number, or it is in a season not displayed in chronological order, add 1 to the special counter
|
# If the episode doesn't have a number, or it is in a season not displayed in chronological order, add 1 to the special counter
|
||||||
if episode['episode_number'] is None or episode['episode_number'] is not None and episode['season_display_number'] == '':
|
if episode['episode_number'] is None or isinstance(episode['episode_number'], float):
|
||||||
special_counter += 1
|
special_counter += 1
|
||||||
|
|
||||||
# Append the episode to the episodes list
|
# Append the episode to the episodes list
|
||||||
@ -243,8 +241,8 @@ class CR(Service):
|
|||||||
id_=episode['id'],
|
id_=episode['id'],
|
||||||
service=self.__class__,
|
service=self.__class__,
|
||||||
title=episode['series_title'],
|
title=episode['series_title'],
|
||||||
season=int(episode['season_display_number']) if episode['season_display_number'] != '' else episode['season_number'] if episode['season_display_number'] == '' and episode['season_number'] == 1 else 0,
|
season=int(episode['season_display_number']) if episode['season_display_number'] != '' else episode['season_sequence_number'] if episode['season_display_number'] == '' and episode['season_sequence_number'] == 1 else 0,
|
||||||
number=episode['episode_number'] if episode['episode_number'] and episode['season_display_number'] != '' else episode['episode_number'] if episode['season_display_number'] == '' and episode['season_number'] == 1 else special_counter,
|
number = episode['episode_number'] if isinstance(episode['episode_number'], int) else special_counter,
|
||||||
name=episode['title'] if episode['title'] else episode['season_title'],
|
name=episode['title'] if episode['title'] else episode['season_title'],
|
||||||
year=episode['episode_air_date'][:4],
|
year=episode['episode_air_date'][:4],
|
||||||
language=episode['audio_locale']
|
language=episode['audio_locale']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user