mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
YT: save decipher actions only after successful deciphering
This commit is contained in:
@@ -129,7 +129,10 @@ var YouTubeClient = GObject.registerClass({
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
actions = YTDL.sig.extractActions(pBody);
|
actions = YTDL.sig.extractActions(pBody);
|
||||||
this._createCacheFileAsync(ytId, actions);
|
if(actions) {
|
||||||
|
debug('deciphered');
|
||||||
|
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'));
|
||||||
|
Reference in New Issue
Block a user