Spaces:
Paused
Paused
GilangAlRusliadi commited on
Commit ·
5c3bbe9
1
Parent(s): a12586d
JOI
Browse files- app.py +8 -8
- iwara.py +1 -1
- mega.py +1 -1
- paipancon.py +1 -1
- pornhub.py +1 -1
- rule34.py +1 -1
- trailer.py +1 -1
- youtube.py +1 -1
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import os
|
| 2 |
import streamlit as st
|
| 3 |
from streamlit_option_menu import option_menu
|
| 4 |
-
from youtube import
|
| 5 |
-
from pornhub import
|
| 6 |
-
from iwara import
|
| 7 |
-
from mega import
|
| 8 |
-
from rule34 import
|
| 9 |
-
from paipancon import
|
| 10 |
-
from trailer import
|
| 11 |
from other import cut_video, session, convert_size
|
| 12 |
|
| 13 |
# Navigasi Sidebar
|
|
@@ -16,7 +16,7 @@ with st.sidebar:
|
|
| 16 |
selected = option_menu("Video Downloader", options,
|
| 17 |
icons=['play', 'fire', 'star', 'moon','gear', 'house', 'lightning'], menu_icon="cast", default_index=0)
|
| 18 |
|
| 19 |
-
functions = [
|
| 20 |
|
| 21 |
if selected:
|
| 22 |
index = options.index(selected)
|
|
|
|
| 1 |
import os
|
| 2 |
import streamlit as st
|
| 3 |
from streamlit_option_menu import option_menu
|
| 4 |
+
from youtube import youtube_dl
|
| 5 |
+
from pornhub import pornhub_dl
|
| 6 |
+
from iwara import iwara_dl
|
| 7 |
+
from mega import mega_dl
|
| 8 |
+
from rule34 import rule34_dl
|
| 9 |
+
from paipancon import paipancon_dl
|
| 10 |
+
from trailer import trailer_dl
|
| 11 |
from other import cut_video, session, convert_size
|
| 12 |
|
| 13 |
# Navigasi Sidebar
|
|
|
|
| 16 |
selected = option_menu("Video Downloader", options,
|
| 17 |
icons=['play', 'fire', 'star', 'moon','gear', 'house', 'lightning'], menu_icon="cast", default_index=0)
|
| 18 |
|
| 19 |
+
functions = [youtube_dl, pornhub_dl, iwara_dl, mega_dl, rule34_dl, paipancon_dl, trailer_dl]
|
| 20 |
|
| 21 |
if selected:
|
| 22 |
index = options.index(selected)
|
iwara.py
CHANGED
|
@@ -354,5 +354,5 @@ if __name__ == '__main__':
|
|
| 354 |
|
| 355 |
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 356 |
|
| 357 |
-
def
|
| 358 |
return None
|
|
|
|
| 354 |
|
| 355 |
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 356 |
|
| 357 |
+
def iwara_dl():
|
| 358 |
return None
|
mega.py
CHANGED
|
@@ -19,7 +19,7 @@ def download_mega(name, directory, url):
|
|
| 19 |
|
| 20 |
return filename
|
| 21 |
|
| 22 |
-
def
|
| 23 |
judul = judul + '.mp4'
|
| 24 |
download = '/home/user/app/Mega'
|
| 25 |
filename = download_mega(judul, download, url)
|
|
|
|
| 19 |
|
| 20 |
return filename
|
| 21 |
|
| 22 |
+
def mega_dl(url, judul):
|
| 23 |
judul = judul + '.mp4'
|
| 24 |
download = '/home/user/app/Mega'
|
| 25 |
filename = download_mega(judul, download, url)
|
paipancon.py
CHANGED
|
@@ -85,7 +85,7 @@ def get_info_paipancon(link):
|
|
| 85 |
# Return the results
|
| 86 |
return title, series, actress, digit, server_link, hq_link
|
| 87 |
|
| 88 |
-
def
|
| 89 |
return None
|
| 90 |
|
| 91 |
|
|
|
|
| 85 |
# Return the results
|
| 86 |
return title, series, actress, digit, server_link, hq_link
|
| 87 |
|
| 88 |
+
def paipancon_dl():
|
| 89 |
return None
|
| 90 |
|
| 91 |
|
pornhub.py
CHANGED
|
@@ -16,7 +16,7 @@ def download_pornhub(url, resolusi, nama_channel, judul_video):
|
|
| 16 |
subprocess.run(["youtube-dl", "--verbose", "-f", f"bestvideo[height<={resolusi}]+bestaudio/best[height<={resolusi}]", "-o", filename, url])
|
| 17 |
return filename
|
| 18 |
|
| 19 |
-
def
|
| 20 |
video_info = ""
|
| 21 |
|
| 22 |
ydl_opts = {
|
|
|
|
| 16 |
subprocess.run(["youtube-dl", "--verbose", "-f", f"bestvideo[height<={resolusi}]+bestaudio/best[height<={resolusi}]", "-o", filename, url])
|
| 17 |
return filename
|
| 18 |
|
| 19 |
+
def pornhub_dl(url, resolusi_input):
|
| 20 |
video_info = ""
|
| 21 |
|
| 22 |
ydl_opts = {
|
rule34.py
CHANGED
|
@@ -80,5 +80,5 @@ def get_info_rule34(soup: BeautifulSoup):
|
|
| 80 |
|
| 81 |
return video_title, artist, thumbnail_url, video_url
|
| 82 |
|
| 83 |
-
def
|
| 84 |
return None
|
|
|
|
| 80 |
|
| 81 |
return video_title, artist, thumbnail_url, video_url
|
| 82 |
|
| 83 |
+
def rule34_dl():
|
| 84 |
return None
|
trailer.py
CHANGED
|
@@ -5,7 +5,7 @@ import json
|
|
| 5 |
from other import get_video_info, get_digits, download_file, convert_videos, join_video
|
| 6 |
|
| 7 |
|
| 8 |
-
def
|
| 9 |
# Set the path to the thumbnail directory
|
| 10 |
thumbnail_dir = "/home/user/app/Trailer/Thumbnail"
|
| 11 |
if not os.path.exists(thumbnail_dir):
|
|
|
|
| 5 |
from other import get_video_info, get_digits, download_file, convert_videos, join_video
|
| 6 |
|
| 7 |
|
| 8 |
+
def trailer_dl(url):
|
| 9 |
# Set the path to the thumbnail directory
|
| 10 |
thumbnail_dir = "/home/user/app/Trailer/Thumbnail"
|
| 11 |
if not os.path.exists(thumbnail_dir):
|
youtube.py
CHANGED
|
@@ -29,7 +29,7 @@ def download_youtube(url, nama_channel, new_name):
|
|
| 29 |
|
| 30 |
return filename
|
| 31 |
|
| 32 |
-
def
|
| 33 |
video_info = ""
|
| 34 |
yt = YouTube(link)
|
| 35 |
nama_channel = yt.author
|
|
|
|
| 29 |
|
| 30 |
return filename
|
| 31 |
|
| 32 |
+
def youtube_dl(link, resolusi_input):
|
| 33 |
video_info = ""
|
| 34 |
yt = YouTube(link)
|
| 35 |
nama_channel = yt.author
|