Started working on pushing multiple raw links to user.
This commit is contained in:
parent
349a6b82aa
commit
e0832c2c1f
3 changed files with 47 additions and 12 deletions
|
|
@ -67,6 +67,8 @@ 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]+)/);
|
||||
//Went with regex for speed, but I figure I'd keep this around in case we want the accuracy of a battle-tested implementation
|
||||
|
|
@ -85,6 +87,7 @@ module.exports.refreshRawLink = async function(mediaObj){
|
|||
|
||||
//return media object
|
||||
return mediaObj;
|
||||
*/
|
||||
}
|
||||
|
||||
//Return null to tell the calling function there is no refresh required for this media type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue