Merge pull request #672 from AbdullahM0hamed/quality

Add 540p as a viable quality
master
Red 2021-05-10 21:21:11 +01:00 committed by GitHub
commit e37c1c626c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ sitenames = [v[1] for v in ALL_ANIME_SITES]
'--download-dir', metavar='PATH',
help="Specify the directory to download to")
@click.option(
'--quality', '-q', type=click.Choice(['360p', '480p', '720p', '1080p']),
'--quality', '-q', type=click.Choice(['360p', '480p', '540p', '720p', '1080p']),
help='Specify the quality of episode. Default-720p')
@click.option(
'--fallback-qualities', '-fq', cls=util.ClickListOption,

View File

@ -23,7 +23,7 @@ class Anime:
----------
url: string
URL of the anime.
quality: One of ['360p', '480p', '720p', '1080p']
quality: One of ['360p', '480p', '540p', '720p', '1080p']
Quality of episodes
fallback_qualities: list
The order of fallback.
@ -44,7 +44,7 @@ class Anime:
meta = dict()
subclasses = {}
subbed = None
QUALITIES = ['360p', '480p', '720p', '1080p']
QUALITIES = ['360p', '480p', '540p', '720p', '1080p']
@classmethod
def search(cls, query):
@ -253,7 +253,7 @@ class AnimeEpisode:
----------
url: string
URL of the episode.
quality: One of ['360p', '480p', '720p', '1080p']
quality: One of ['360p', '480p', '540p', '720p', '1080p']
Quality of episode
fallback_qualities: list
The order of fallback.