Started work on re-implementation of youtube raw-link reloading.
This commit is contained in:
parent
a70879c76c
commit
02c4d214fa
|
|
@ -67,7 +67,6 @@ module.exports.yankMedia = async function(url, title){
|
|||
module.exports.refreshRawLink = async function(mediaObj){
|
||||
switch(mediaObj.type){
|
||||
case 'yt':
|
||||
console.log("lolnope");
|
||||
/* We're skipping this one for now...
|
||||
//Scrape expiration from query strings
|
||||
const expires = mediaObj.rawLink.match(/expire=([0-9]+)/);
|
||||
|
|
@ -80,14 +79,16 @@ module.exports.refreshRawLink = async function(mediaObj){
|
|||
return null;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
//Re-fetch media metadata
|
||||
metadata = await ytdlpUtil.fetchYoutubeMetadata(mediaObj.id);
|
||||
|
||||
//Refresh media rawlink from metadata
|
||||
mediaObj.rawLink = metadata[0].rawLink;
|
||||
|
||||
//return media object
|
||||
return mediaObj;
|
||||
*/
|
||||
}
|
||||
|
||||
//Return null to tell the calling function there is no refresh required for this media type
|
||||
|
|
|
|||
Loading…
Reference in a new issue