Spaces:
Running
Running
changed 0 to 1
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def extract_provider(url):
|
|
74 |
parsed_url = urlparse(url)
|
75 |
|
76 |
# Extract domain and split it to get the main part
|
77 |
-
domain = parsed_url.netloc.split('.')[
|
78 |
|
79 |
# Extract course name
|
80 |
match = re.search(r'/course/([^/]+)/', url)
|
|
|
74 |
parsed_url = urlparse(url)
|
75 |
|
76 |
# Extract domain and split it to get the main part
|
77 |
+
domain = parsed_url.netloc.split('.')[1]
|
78 |
|
79 |
# Extract course name
|
80 |
match = re.search(r'/course/([^/]+)/', url)
|