Refactored media link parsing, started work on YT-DLP integration.
This commit is contained in:
parent
67c687a8d3
commit
0ce0685fd5
7 changed files with 98 additions and 30 deletions
|
|
@ -14,16 +14,14 @@ GNU Affero General Public License for more details.
|
|||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
||||
|
||||
//Node imports
|
||||
const crypto = require('node:crypto');
|
||||
|
||||
module.exports = class{
|
||||
constructor(title, fileName, url, id, type, duration){
|
||||
constructor(title, fileName, url, id, type, duration, rawLink = url){
|
||||
this.title = title;
|
||||
this.fileName = fileName
|
||||
this.url = url;
|
||||
this.id = id;
|
||||
this.type = type;
|
||||
this.duration = duration;
|
||||
this.rawLink = rawLink;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue