Use format streams by default instead of DASH (#53)
This commit is contained in:
1 parent
52b4feb130
commit
aaea507fde
2 files changed
+9
-7
No files matched your search
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Crash in case GetLocalIpAddress() returns invalid
|
- Crash in case GetLocalIpAddress() returns invalid
|
||||||
|
- Use Format Stream (720p) instead of DASH (https://github.com/iv-org/invidious/issues/3666)
|
||||||
|
|
||||||
## [0.7.0] - 2023-02-04
|
## [0.7.0] - 2023-02-04
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -117,6 +117,14 @@ function OnVideoDetailsTaskResults(output as object) as void
|
|||||||
end if
|
end if
|
||||||
playletStreamUrls.push(hlsUrlLocal)
|
playletStreamUrls.push(hlsUrlLocal)
|
||||||
else
|
else
|
||||||
|
if metadata.formatStreams.Count() > 0
|
||||||
|
stream = metadata.formatStreams[metadata.formatStreams.Count() - 1]
|
||||||
|
itag = stream.itag
|
||||||
|
|
||||||
|
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, false))
|
||||||
|
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, true))
|
||||||
|
end if
|
||||||
|
|
||||||
if metadata.dashUrl <> invalid
|
if metadata.dashUrl <> invalid
|
||||||
|
|
||||||
#if DASH_THUMBNAILS
|
#if DASH_THUMBNAILS
|
||||||
@@ -135,13 +143,6 @@ function OnVideoDetailsTaskResults(output as object) as void
|
|||||||
playletStreamUrls.push(dashUrlLocal)
|
playletStreamUrls.push(dashUrlLocal)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if metadata.formatStreams.Count() > 0
|
|
||||||
stream = metadata.formatStreams[metadata.formatStreams.Count() - 1]
|
|
||||||
itag = stream.itag
|
|
||||||
|
|
||||||
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, false))
|
|
||||||
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, true))
|
|
||||||
end if
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
metadata.playletStreamUrls = playletStreamUrls
|
metadata.playletStreamUrls = playletStreamUrls
|
||||||
|
|||||||
Reference in new issue
Block a user