Nattyboi commited on
Commit
d1af701
·
1 Parent(s): e295414

changed 0 to 1

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('.')[0]
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)