shikharyashmaurya
commited on
Commit
•
b22bf42
1
Parent(s):
42484c0
Update app.py
Browse files
app.py
CHANGED
@@ -16,10 +16,10 @@ import re
|
|
16 |
|
17 |
def parseYoutubeURL(url):
|
18 |
url=str(url)
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
|
25 |
|
|
|
16 |
|
17 |
def parseYoutubeURL(url):
|
18 |
url=str(url)
|
19 |
+
data = re.findall(r"(?:v=|\/)([0-9A-Za-z_-]{11}).*", url)
|
20 |
+
if data:
|
21 |
+
return data[0]
|
22 |
+
return ""
|
23 |
|
24 |
|
25 |
|