-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7099479
commit b118333
Showing
8 changed files
with
35 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import warnings | ||
warnings.filterwarnings('ignore', message='Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning') | ||
|
||
__version__ = "0.2.5" | ||
__version__ = "0.2.6" |
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,23 +1,23 @@ | ||
from textual._two_way_dict import TwoWayDict | ||
|
||
from .doodstream import DoodstreamHoster | ||
from .streamtape import StreamtapeHoster | ||
from .veo import VOEHoster | ||
from .vidoza import VidozaHoster | ||
from .filemoon import FilemoonHoster | ||
from .luluvdo import LuluvdoHoster | ||
from .speedfiles import SpeedFilesHoster | ||
from .doodstream import DoodstreamHoster | ||
from .vidmoly import VidmolyHoster | ||
from .filemoon import FilemoonHoster | ||
from .luluvdo import LuluvdoHoster | ||
from .streamtape import StreamtapeHoster | ||
|
||
hoster = TwoWayDict( | ||
{ | ||
"DS": DoodstreamHoster, | ||
"ST": StreamtapeHoster, | ||
"VEO": VOEHoster, | ||
"VZ": VidozaHoster, | ||
"SF": SpeedFilesHoster, | ||
"DS": DoodstreamHoster, | ||
"VM": VidmolyHoster, | ||
"FM": FilemoonHoster, | ||
"LU": LuluvdoHoster, | ||
"SF": SpeedFilesHoster, | ||
"VM": VidmolyHoster | ||
"ST": StreamtapeHoster | ||
} | ||
) |
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,12 +1,22 @@ | ||
from dataclasses import dataclass | ||
from re import compile as re_compile | ||
|
||
from ..networking import AsyncClient | ||
|
||
from .common import DirectLink, Hoster | ||
|
||
VIDMOLY_PATTERN = re_compile("") | ||
VIDMOLY_PATTERN = re_compile("sources: \[{file:\"(?P<url>.*?)\"}]") | ||
|
||
# TODO: WIP !!! | ||
|
||
@dataclass | ||
class VidmolyHoster(Hoster): | ||
requires_headers = True | ||
|
||
async def get_direct_link(self) -> DirectLink: | ||
return DirectLink("WIP") | ||
async with AsyncClient(verify=False, auto_referer=False) as client: | ||
response = await client.get(self.url) | ||
match = VIDMOLY_PATTERN.search(response.text) | ||
return DirectLink( | ||
url=match.group("url"), | ||
headers={"Referer": "https://vidmoly.to/"} | ||
) |
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 |
---|---|---|
|
@@ -15,9 +15,9 @@ hoster = [ | |
"VZ", | ||
"DS", | ||
"SF", | ||
"VM", | ||
"FM", | ||
"LU", | ||
"VM", | ||
"ST" | ||
] | ||
update_checker = true | ||
|