Commit 6f900ea2 authored by sebaro's avatar sebaro

Exclude multi segment DASH videos

parent 0de7b2b9
......@@ -3,6 +3,9 @@
/* SaveTube Changelog */
#2019.09.01
- YouTube: exclude multi segment DASH videos
#2019.08.17
- YouTube: adds VLD/240, LD/360 DASH videos
......
......@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "SaveTube",
"version": "2019.8.17",
"version": "2019.9.1",
"description": "Download videos from video sharing web sites.",
......
// ==UserScript==
// @name SaveTube
// @version 2019.08.17
// @version 2019.09.01
// @description Download videos from video sharing web sites.
// @author sebaro
// @namespace http://sebaro.pro/savetube
......@@ -705,6 +705,9 @@ function SaveTube() {
myVideoCode = ytVideoFormats[ytVideoCode];
if (myVideoCode) {
ytVideo = cleanMyContent(ytVideos[i], true);
if (myVideoCode.indexOf('Video') != -1) {
if (ytVideo.indexOf('source=yt_otf') != -1) continue;
}
ytVideo = ytVideo.replace(/url=/, '').replace(/&$/, '');
if (ytVideo.match(/itag=/) && ytVideo.match(/itag=/g).length > 1) {
if (ytVideo.match(/itag=\d{1,3}&/)) ytVideo = ytVideo.replace(/itag=\d{1,3}&/, '');
......
// ==UserScript==
// @name SaveTube
// @version 2019.08.17
// @version 2019.09.01
// @description Download videos from video sharing web sites.
// @author sebaro
// @namespace http://sebaro.pro/savetube
......@@ -705,6 +705,9 @@ function SaveTube() {
myVideoCode = ytVideoFormats[ytVideoCode];
if (myVideoCode) {
ytVideo = cleanMyContent(ytVideos[i], true);
if (myVideoCode.indexOf('Video') != -1) {
if (ytVideo.indexOf('source=yt_otf') != -1) continue;
}
ytVideo = ytVideo.replace(/url=/, '').replace(/&$/, '');
if (ytVideo.match(/itag=/) && ytVideo.match(/itag=/g).length > 1) {
if (ytVideo.match(/itag=\d{1,3}&/)) ytVideo = ytVideo.replace(/itag=\d{1,3}&/, '');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment