Update readme and more bug fixes
parent
dfa924e100
commit
d55b98b923
|
@ -17,9 +17,10 @@ Yeah. Me too! That's why this tool exists.
|
|||
|
||||
- Download or stream any episode or episode range of any anime.
|
||||
- Specify the quality you want to stream or download.
|
||||
- Search and download. (Only 9anime)
|
||||
- Search and download.
|
||||
- Save yourselves from those malicious ads.
|
||||
- Add any anime to your watch list using `anime watch` and let anime downloader take care of everything for you.
|
||||
- Download using external downloader ([aria2](https://aria2.github.io/) recommended).
|
||||
- Configurable using `config.json`. See [doc](https://github.com/vn-ki/anime-downloader/wiki/Config).
|
||||
|
||||
## Supported Sites
|
||||
|
@ -76,7 +77,7 @@ See [documentation](https://github.com/vn-ki/anime-downloader/wiki/Package-docum
|
|||
|
||||
### Development Instructions
|
||||
|
||||
See [wiki](https://github.com/vn-ki/anime-downloader/wiki/Development-Instructions)
|
||||
See [development instructions](https://github.com/vn-ki/anime-downloader/wiki/Development-Instructions)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ DEFAULT_CONFIG = {
|
|||
'log_level': 'INFO',
|
||||
'file_format': '{anime_title}/{anime_title}_{ep_no}',
|
||||
'provider': '9anime',
|
||||
'external_downloader': '',
|
||||
},
|
||||
'watch': {
|
||||
'quality': '720p',
|
||||
|
|
|
@ -8,7 +8,7 @@ from anime_downloader.extractors.base_extractor import BaseExtractor
|
|||
|
||||
class RapidVideo(BaseExtractor):
|
||||
def _get_data(self):
|
||||
url = self.url
|
||||
url = self.url + '&q=' + self.quality
|
||||
logging.debug('Calling Rapid url: {}'.format(url))
|
||||
r = requests.get(url, headers=self.headers)
|
||||
soup = BeautifulSoup(r.text, 'html.parser')
|
||||
|
|
|
@ -113,8 +113,11 @@ class BaseEpisode:
|
|||
|
||||
logging.debug("Extracting stream info of id: {}".format(self.episode_id))
|
||||
|
||||
# TODO: New flag: online_data=False
|
||||
try:
|
||||
self.get_data()
|
||||
# Just to verify the source is acquired
|
||||
self.source().stream_url
|
||||
except NotFoundError:
|
||||
parent.QUALITIES.remove(self.quality)
|
||||
for quality in parent.QUALITIES:
|
||||
|
@ -134,7 +137,7 @@ class BaseEpisode:
|
|||
sitename, url = self._sources[index]
|
||||
|
||||
extractor = get_extractor(sitename)
|
||||
return extractor(url)
|
||||
return extractor(url, quality=self.quality)
|
||||
|
||||
def get_data(self):
|
||||
self._sources = self._get_sources()
|
||||
|
@ -157,7 +160,7 @@ class BaseEpisode:
|
|||
|
||||
logging.info(path)
|
||||
|
||||
r = requests.get(self.source(), stream=True)
|
||||
r = requests.get(self.source().stream_url, stream=True)
|
||||
|
||||
util.make_dir(path.rsplit('/', 1)[0])
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class KissanimeEpisode(BaseEpisode):
|
|||
rapid_re = re.compile(r'iframe.*src="https://(.*?)"')
|
||||
rapid_url = rapid_re.findall(response.text)[0]
|
||||
|
||||
return [('rapidvideo', rapid_url+'&q='+self.quality)]
|
||||
return [('rapidvideo', rapid_url)]
|
||||
|
||||
|
||||
class KissAnime(BaseAnimeCF):
|
||||
|
|
Loading…
Reference in New Issue