Add 540p as a viable quality

master
AbdullahM0hamed 2021-05-10 21:19:45 +01:00
parent 6b49b7e06d
commit 1d7d85f97e
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.