Skip to content

Commit

Permalink
Merge pull request #588 from ArjixGamer/patch-27
Browse files Browse the repository at this point in the history
Added arabic provider EgyAnime
  • Loading branch information
AbdullahM0hamed committed Dec 28, 2020
2 parents 49a5498 + 2eb7bea commit c54c9d8
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 246 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Yeah. Me too! That's why this tool exists.
- Darkanime
- Dbanimes
- EraiRaws
- EgyAnime - usually m3u8 (good for streaming, not so much for downloading)
- FastAni
- GurminderBoparai (AnimeChameleon)
- itsaturday
Expand Down
7 changes: 7 additions & 0 deletions anime_downloader/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
'animefrenzy': {
'version': 'subbed'
},
'egyanime': {
'version': 'subbed',
'servers': [
'clipwatching',
'streamtape'
]
},
'animebinge': {
'version': 'subbed',
'servers': [
Expand Down
18 changes: 18 additions & 0 deletions anime_downloader/extractors/clipwatching.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from anime_downloader.extractors.base_extractor import BaseExtractor
from anime_downloader.sites import helpers
from anime_downloader.util import deobfuscate_packed_js
import re
import json

class clipwatching(BaseExtractor):
def _get_data(self):
fix_json = [['src:', '"src":'], ['type:', '"type":']]
sources = re.search(r"sources:\s*(\[.*?\])", helpers.get(self.url).text).group(1)
for x, y in fix_json:
sources = sources.replace(x, y)
sources = json.loads(sources)

return {
'stream_url': sources[0]['src'],
'referer': self.url
}

0 comments on commit c54c9d8

Please sign in to comment.