chore: add to readme and style
parent
b432c14252
commit
57767cd3d0
11
README.md
11
README.md
|
@ -21,9 +21,9 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
# Anime Downloader
|
||||
|
||||
Ever dreamt about watching anime for free effortlessly without all those unbearable ads? Ever dreamt of downloading your favourite anime for that long trip?
|
||||
|
@ -41,7 +41,7 @@ Yeah. Me too! That's why this tool exists.
|
|||
- 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 [documentation](https://github.com/vn-ki/anime-downloader/wiki/Config).
|
||||
|
||||
|
||||
## Supported Sites
|
||||
|
||||
- twist.moe
|
||||
|
@ -50,6 +50,7 @@ Yeah. Me too! That's why this tool exists.
|
|||
- Animeflix
|
||||
- Animefreak
|
||||
- Gogoanime
|
||||
- Dubbedanime
|
||||
- itsaturday
|
||||
- Animeflv
|
||||
- Kissanime - requires Node.js
|
||||
|
@ -65,9 +66,9 @@ If you have trouble installing, see extended installation instructions [here](ht
|
|||
- For cloudflare scraping [cfscrape](https://github.com/Anorov/cloudflare-scrape) is used. It depends on [`node-js`](https://nodejs.org/en/). So if you want to use cloudflare, make sure you have [node-js](https://nodejs.org/en/) installed.
|
||||
- You might have to use pip3 depending on your system
|
||||
|
||||
## Usage
|
||||
## Usage
|
||||
|
||||
See [wiki](https://github.com/vn-ki/anime-downloader/wiki).
|
||||
See [wiki](https://github.com/vn-ki/anime-downloader/wiki).
|
||||
|
||||
Anime downloader has two sub commands, `dl` and `watch`.
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Dubbedanime(Anime, sitename='dubbedanime'):
|
|||
}).json()
|
||||
|
||||
title_data = {
|
||||
'data' : []
|
||||
'data' : []
|
||||
}
|
||||
for a in range(len(search_results['results'])):
|
||||
url = cls.url + search_results['results'][a]['url']
|
||||
|
@ -43,8 +43,8 @@ class Dubbedanime(Anime, sitename='dubbedanime'):
|
|||
soup = helpers.soupify(helpers.get(self.url))
|
||||
elements = soup.find("ul", {"id": "episodes-grid"}).select('li > div > a')
|
||||
|
||||
episode_links = []
|
||||
for a in elements[::-1]:
|
||||
episode_links = []
|
||||
for a in elements[::-1]:
|
||||
episode_links.append('https://dubbedanime.net' + a.get('href'))
|
||||
|
||||
return [a for a in episode_links]
|
||||
|
@ -54,15 +54,16 @@ class Dubbedanime(Anime, sitename='dubbedanime'):
|
|||
self.title= soup.select('h1.h3')[0].text
|
||||
|
||||
class DubbedanimeEpisode(AnimeEpisode, sitename='dubbedanime'):
|
||||
def _get_sources(self):
|
||||
def _get_sources(self):
|
||||
# TODO: refractor to extractor
|
||||
soup = helpers.soupify(helpers.get(self.url)).text
|
||||
xuath = r"xuath = '[^']*"
|
||||
x = re.search(xuath,soup).group().split("xuath = '")[1]
|
||||
tokenregex = r'"trollvid","id":"[^"]*'
|
||||
token = re.search(tokenregex,soup).group(0).split('"trollvid","id":"')[1]
|
||||
url = f'https://mp4.sh/embed/{token}{x}'
|
||||
|
||||
|
||||
soup = helpers.get(url, referer=self.url).text
|
||||
url = re.search(r'source src="[^"]*',soup).group().split('source src="')[1]
|
||||
|
||||
return [('no_extractor', url,)]
|
||||
return [('no_extractor', url,)]
|
||||
|
|
Loading…
Reference in New Issue