diff options
| author | Emilien Devos <4016501+unixfox@users.noreply.github.com> | 2024-08-13 14:37:35 +0200 |
|---|---|---|
| committer | Emilien Devos <4016501+unixfox@users.noreply.github.com> | 2024-08-13 14:37:35 +0200 |
| commit | e6c39f9e3a29b1b701f18875f57114cb30c4b8dc (patch) | |
| tree | b54275dc74e2e3b8657b7d635d87184e550e1254 /src | |
| parent | 53223f99b03ac1a51cb35f7c33d4939083dc6f1a (diff) | |
| download | invidious-e6c39f9e3a29b1b701f18875f57114cb30c4b8dc.tar.gz invidious-e6c39f9e3a29b1b701f18875f57114cb30c4b8dc.tar.bz2 invidious-e6c39f9e3a29b1b701f18875f57114cb30c4b8dc.zip | |
add pot= parameter now required by youtube
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index cdfca02c..44ed53ee 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -110,7 +110,7 @@ struct Video fmt["url"] = JSON::Any.new("#{fmt["url"]}#{DECRYPT_FUNCTION.decrypt_signature(fmt)}") end - fmt["url"] = JSON::Any.new("#{fmt["url"]}&host=#{URI.parse(fmt["url"].as_s).host}") + fmt["url"] = JSON::Any.new("#{fmt["url"]}&host=#{URI.parse(fmt["url"].as_s).host}&pot=#{CONFIG.po_token}") fmt["url"] = JSON::Any.new("#{fmt["url"]}®ion=#{self.info["region"]}") if self.info["region"]? end @@ -130,7 +130,7 @@ struct Video fmt["url"] = JSON::Any.new("#{fmt["url"]}#{DECRYPT_FUNCTION.decrypt_signature(fmt)}") end - fmt["url"] = JSON::Any.new("#{fmt["url"]}&host=#{URI.parse(fmt["url"].as_s).host}") + fmt["url"] = JSON::Any.new("#{fmt["url"]}&host=#{URI.parse(fmt["url"].as_s).host}&pot=#{CONFIG.po_token}") fmt["url"] = JSON::Any.new("#{fmt["url"]}®ion=#{self.info["region"]}") if self.info["region"]? end |
