-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Oshan96/dev
Dev - v1.0.0
- Loading branch information
Showing
24 changed files
with
1,222 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import Anime_Downloader | ||
from scrapers.nineanime import Anime_Scraper | ||
import os | ||
import sys | ||
import warnings | ||
from queue import Queue | ||
from gui.GUI import Anime_GUI | ||
from gui.GUI import AnimeGUI | ||
|
||
if __name__ == "__main__" : | ||
if __name__ == "__main__": | ||
warnings.filterwarnings("ignore") | ||
Anime_GUI(Queue(), Anime_Downloader, Anime_Scraper).run() | ||
# activate color codes | ||
if sys.platform.lower() == "win32": | ||
os.system("color") | ||
|
||
AnimeGUI(Queue()).run() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class BaseExtractor: | ||
|
||
def __init__(self, url, session): | ||
self.url = url | ||
self.session = session | ||
|
||
def extract_page_content(self): | ||
video_page = self.session.get(self.url).content | ||
return video_page.decode('utf-8') | ||
|
||
def extract_direct_url(self): | ||
raise NotImplementedError | ||
|
||
def direct_link(self): | ||
return self.extract_direct_url() |
Oops, something went wrong.