Update app.py
Browse files
app.py
CHANGED
@@ -272,13 +272,7 @@ async def process_url(video_url: str) -> str:
|
|
272 |
# Step 4: Match text for <td> tags with 3 - 4 digit numbers
|
273 |
td_matches = re.findall(r'<td>(\d{3,4})</td>', tr_match)
|
274 |
quality = td_matches[0] if td_matches else None
|
275 |
-
|
276 |
-
# Step 5: Get URLs from the current <tr> match
|
277 |
-
urls = re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+',
|
278 |
-
tr_match)
|
279 |
-
# Step 6: Set name for the URLs
|
280 |
-
named_urls = [(url, f"{quality}P - MP4") for url in urls]
|
281 |
-
repeat_results.extend(named_urls)
|
282 |
|
283 |
# Step 7: Count the repeat results
|
284 |
result_count = len(repeat_results)
|
|
|
272 |
# Step 4: Match text for <td> tags with 3 - 4 digit numbers
|
273 |
td_matches = re.findall(r'<td>(\d{3,4})</td>', tr_match)
|
274 |
quality = td_matches[0] if td_matches else None
|
275 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
|
277 |
# Step 7: Count the repeat results
|
278 |
result_count = len(repeat_results)
|