Spaces:
Paused
Paused
Commit ·
7ab5786
1
Parent(s): 4f1b288
Iwara
Browse files
app.py
CHANGED
|
@@ -27,10 +27,6 @@ if selected:
|
|
| 27 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 28 |
video_link = st.text_input("Link Video", value='https://www.youtube.com/watch?v=tFSfPmqbfKU')
|
| 29 |
resolution = st.selectbox("Pilih Resolusi", (360, 480, 720), 2)
|
| 30 |
-
elif selected == 'Iwara':
|
| 31 |
-
username = st.text_input("Username")
|
| 32 |
-
password = st.text_input("Password")
|
| 33 |
-
video_link = st.text_input("Link Video")
|
| 34 |
elif selected == 'Mega':
|
| 35 |
name = st.text_input("Nama File")
|
| 36 |
video_link = st.text_input("Link Video")
|
|
@@ -88,8 +84,6 @@ if selected:
|
|
| 88 |
if st.button(f"Download and Cut {selected}"):
|
| 89 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 90 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, resolution)
|
| 91 |
-
elif selected == 'Iwara':
|
| 92 |
-
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, username, password)
|
| 93 |
elif selected == 'Mega':
|
| 94 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, name)
|
| 95 |
else:
|
|
@@ -105,8 +99,6 @@ if selected:
|
|
| 105 |
if st.button(f"Download and Compress {selected}"):
|
| 106 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 107 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, resolution)
|
| 108 |
-
elif selected == 'Iwara':
|
| 109 |
-
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, username, password)
|
| 110 |
elif selected == 'Mega':
|
| 111 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, name)
|
| 112 |
else:
|
|
@@ -120,8 +112,6 @@ if selected:
|
|
| 120 |
if st.button(f"Download {selected}"):
|
| 121 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 122 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, resolution)
|
| 123 |
-
elif selected == 'Iwara':
|
| 124 |
-
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, username, password)
|
| 125 |
elif selected == 'Mega':
|
| 126 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, name)
|
| 127 |
else:
|
|
|
|
| 27 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 28 |
video_link = st.text_input("Link Video", value='https://www.youtube.com/watch?v=tFSfPmqbfKU')
|
| 29 |
resolution = st.selectbox("Pilih Resolusi", (360, 480, 720), 2)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
elif selected == 'Mega':
|
| 31 |
name = st.text_input("Nama File")
|
| 32 |
video_link = st.text_input("Link Video")
|
|
|
|
| 84 |
if st.button(f"Download and Cut {selected}"):
|
| 85 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 86 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, resolution)
|
|
|
|
|
|
|
| 87 |
elif selected == 'Mega':
|
| 88 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, name)
|
| 89 |
else:
|
|
|
|
| 99 |
if st.button(f"Download and Compress {selected}"):
|
| 100 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 101 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, resolution)
|
|
|
|
|
|
|
| 102 |
elif selected == 'Mega':
|
| 103 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, name)
|
| 104 |
else:
|
|
|
|
| 112 |
if st.button(f"Download {selected}"):
|
| 113 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 114 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, resolution)
|
|
|
|
|
|
|
| 115 |
elif selected == 'Mega':
|
| 116 |
video_file, judul_video, video_info, thumbnail_file = fungsi(video_link, name)
|
| 117 |
else:
|
iwara.py
CHANGED
|
@@ -162,9 +162,9 @@ class ApiClient:
|
|
| 162 |
|
| 163 |
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 164 |
|
| 165 |
-
def iwara(video_url
|
| 166 |
if 'client' not in globals():
|
| 167 |
-
client = ApiClient(email=
|
| 168 |
client.login()
|
| 169 |
|
| 170 |
video_id = video_url.split("/")[4]
|
|
|
|
| 162 |
|
| 163 |
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 164 |
|
| 165 |
+
def iwara(video_url):
|
| 166 |
if 'client' not in globals():
|
| 167 |
+
client = ApiClient(email="AnimuHikari", password="Hikari123")
|
| 168 |
client.login()
|
| 169 |
|
| 170 |
video_id = video_url.split("/")[4]
|