diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-12 20:04:13 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-12 20:04:13 -0500 |
| commit | 20e815e7579e51fd65365c33f4681852d817e747 (patch) | |
| tree | 1435fa331cac6b9b3a778b1048f03f402f8e471d /src | |
| parent | 43b2beeaaf4a94b94340a4de81c33029d9eb7bb0 (diff) | |
| download | invidious-20e815e7579e51fd65365c33f4681852d817e747.tar.gz invidious-20e815e7579e51fd65365c33f4681852d817e747.tar.bz2 invidious-20e815e7579e51fd65365c33f4681852d817e747.zip | |
Convert array constants to tuples
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index ac16f0fd..ed2c3d43 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1,4 +1,4 @@ -CAPTION_LANGUAGES = [ +CAPTION_LANGUAGES = { "", "English", "English (auto-generated)", @@ -106,9 +106,9 @@ CAPTION_LANGUAGES = [ "Yiddish", "Yoruba", "Zulu", -] +} -VIDEO_THUMBNAILS = [ +VIDEO_THUMBNAILS = { {name: "default", url: "default", height: 90, width: 120}, {name: "medium", url: "mqdefault", height: 180, width: 320}, {name: "high", url: "hqdefault", height: 360, width: 480}, @@ -117,7 +117,7 @@ VIDEO_THUMBNAILS = [ {name: "start", url: "1", height: 90, width: 120}, {name: "middle", url: "2", height: 90, width: 120}, {name: "end", url: "3", height: 90, width: 120}, -] +} # See https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L380-#L476 VIDEO_FORMATS = { |
