VT-PR/vinetrimmer/utils/adobepass.py
Aswin f8c4accd54 Reset
Reset dev
2025-03-18 00:17:27 +05:30

20 lines
602 B
Python

import os
from abc import ABC
from yt_dlp import YoutubeDL
from yt_dlp.extractor.adobepass import AdobePassIE
class AdobePassVT(AdobePassIE, ABC):
def __init__(self, credential, get_cache):
super().__init__(
YoutubeDL(
{
"ap_mso": credential.extra, # See yt_dlp.extractor.adobepass for supported MSO providers
"ap_username": credential.username,
"ap_password": credential.password,
"cachedir": os.path.realpath(get_cache("adobepass")),
}
)
)