File formats are not searched anymore if video is a playlist. Prior to this they simply errored

This commit is contained in:
Isaac Grynsztein
2020-03-27 13:55:50 -04:00
parent da9dcc0249
commit 8331c319ce

View File

@@ -815,6 +815,10 @@ export class MainComponent implements OnInit {
}
getURLInfo(url) {
// if url is a youtube playlist, skip getting url info
if (url.includes('playlist')) {
return;
}
if (!this.cachedAvailableFormats[url]) {
this.cachedAvailableFormats[url] = {};
}