Refactored media link parsing, started work on YT-DLP integration.

This commit is contained in:
rainbow napkin 2025-05-06 06:32:16 -04:00
parent 67c687a8d3
commit 0ce0685fd5
7 changed files with 98 additions and 30 deletions

View file

@ -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;
}
}