mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
YT: save decipher actions only after successful deciphering
This commit is contained in:
@@ -129,8 +129,11 @@ var YouTubeClient = GObject.registerClass({
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
actions = YTDL.sig.extractActions(pBody);
|
actions = YTDL.sig.extractActions(pBody);
|
||||||
|
if(actions) {
|
||||||
|
debug('deciphered');
|
||||||
this._createCacheFileAsync(ytId, actions);
|
this._createCacheFileAsync(ytId, actions);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(!actions || !actions.length) {
|
if(!actions || !actions.length) {
|
||||||
debug(new Error('could not extract decipher actions'));
|
debug(new Error('could not extract decipher actions'));
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user