This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
import os | |
import re | |
import subprocess | |
import urllib.request | |
import urllib.parse | |
import youtube_dl | |
from gi.repository import Notify | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .common import InfoExtractor | |
class PicasaIE(InfoExtractor): | |
_VALID_URL = r'(?:https?://)?picasaweb\.google.com/lh/photo/(?P<id>.+?)$' | |
def _real_extract(self, url): | |
video_id = self._match_id(url) | |
webpage = self._download_webpage(url, video_id) | |
title = self._html_search_regex( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .common import InfoExtractor | |
from ..utils import RegexNotFoundError | |
class GoogleDriveIE(InfoExtractor): | |
_VALID_URL = r'(?:https?://)?(?:video\.google\.com/get_player\?.*?docid=|(?:docs|drive)\.google\.com/(?:uc\?.*?id=|file/d/))(?P<id>.+?)(?:&|/|$)' | |
_formats = { | |
'5': {'ext': 'flv'}, | |
'6': {'ext': 'flv'}, | |
'13': {'ext': '3gp'}, | |
'17': {'ext': '3gp'}, |