aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-06-10 16:41:45 -0500
committerJesús <heckyel@hyperbola.info>2021-06-10 16:41:45 -0500
commit7fd2c3474fa71cfb36f64e7f5c4d89fb21c38334 (patch)
tree69802416f43f6ef8eff03716933094997bc41b34 /youtube/yt_data_extract
parentd35188178b947d0f3c0c3dbaa0fbfe47d7bdf20a (diff)
downloadyt-local-7fd2c3474fa71cfb36f64e7f5c4d89fb21c38334.tar.lz
yt-local-7fd2c3474fa71cfb36f64e7f5c4d89fb21c38334.tar.xz
yt-local-7fd2c3474fa71cfb36f64e7f5c4d89fb21c38334.zip
Capitalize name app
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r--youtube/yt_data_extract/common.py2
-rw-r--r--youtube/yt_data_extract/watch_extraction.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube/yt_data_extract/common.py b/youtube/yt_data_extract/common.py
index b1cf31c..d03bd89 100644
--- a/youtube/yt_data_extract/common.py
+++ b/youtube/yt_data_extract/common.py
@@ -116,7 +116,7 @@ def _recover_urls(runs):
run['text'] = url # youtube truncates the url text, use actual url instead
def extract_str(node, default=None, recover_urls=False):
- '''default is the value returned if the extraction fails. If recover_urls is true, will attempt to fix Youtube's truncation of url text (most prominently seen in descriptions)'''
+ '''default is the value returned if the extraction fails. If recover_urls is true, will attempt to fix YouTube's truncation of url text (most prominently seen in descriptions)'''
if isinstance(node, str):
return node
diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py
index db53581..daa1e89 100644
--- a/youtube/yt_data_extract/watch_extraction.py
+++ b/youtube/yt_data_extract/watch_extraction.py
@@ -373,7 +373,7 @@ def _extract_formats(info, player_response):
# update with information from big table
hardcoded_itag_info = _formats.get(str(itag), {})
for key, value in hardcoded_itag_info.items():
- conservative_update(fmt, key, value) # prefer info from Youtube
+ conservative_update(fmt, key, value) # prefer info from YouTube
fmt['quality'] = hardcoded_itag_info.get('height')
info['formats'].append(fmt)