This file contains 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
#! /usr/bin/env python3 | |
import sys | |
from urllib.parse import urlparse | |
from urllib.request import urlopen | |
import codecs | |
import json | |
ITUNES_URL = 'https://itunes.apple.com/lookup?id=' |
This file contains 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
#! /usr/bin/env python3 | |
import os | |
import signal | |
import sys | |
import tempfile | |
import threading | |
import pychromecast |
This file contains 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
#! /usr/bin/env python3 | |
import math | |
import sys | |
import youtube_dl | |
BEST_FORMAT = "bestvideo+bestaudio/best" |
This file contains 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
""" | |
Controller to interface with the YouTube-app. | |
Use the media controller to play, pause etc. | |
""" | |
import threading | |
from casttube import YouTubeSession | |
from . import BaseController | |
from ..error import UnsupportedNamespace | |
from ..config import APP_YOUTUBE |
This file contains 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
# Original font: http://www.stuffaboutcode.com/2013/08/raspberry-pi-minecraft-twitter.html | |
LETTERS = { | |
"a": ["###", "# #", "###", "# #", "# #"], | |
"b": ["###", "# #", "###", "# #", "###"], | |
"c": ["###", "# ", "# ", "# ", "###"], | |
"d": ["## ", "# #", "# #", "# #", "## "], | |
"e": ["###", "# ", "###", "# ", "###"], | |
"f": ["###", "# ", "###", "# ", "# "], | |
"g": ["###", "# #", "###", " #", "###"], | |
"h": ["# #", "# #", "###", "# #", "# #"], |