1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-03 09:23:47 -04:00

[cleanup] Misc fixes

Closes #4027
This commit is contained in:
pukkandan
2022-06-11 00:33:54 +05:30
parent d05460e5fe
commit 56ba69e4c9
13 changed files with 72 additions and 83 deletions

View File

@@ -431,7 +431,7 @@ title = self._search_regex( # correct
r'<span[^>]+class="title"[^>]*>([^<]+)', webpage, 'title')
```
Or even better:
which tolerates potential changes in the `style` attribute's value. Or even better:
```python
title = self._search_regex( # correct
@@ -439,7 +439,7 @@ title = self._search_regex( # correct
webpage, 'title', group='title')
```
Note how you tolerate potential changes in the `style` attribute's value or switch from using double quotes to single for `class` attribute:
which also handles both single quotes in addition to double quotes.
The code definitely should not look like: