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
import sys, os, stat, errno, operator, time, datetime, requests | |
from fuse import FUSE, Operations, LoggingMixIn, FuseOSError | |
from mastodon import Mastodon | |
from cachetools import TTLCache, cachedmethod | |
from mastodon.return_types import MediaAttachment, Account, Status | |
class PathItem: | |
def __init__(self, path_type, mtime=None, size=0, symlink_target=None, read_fn=None, listdir_fn=None): | |
self.path_type = path_type | |
self.mtime = mtime or time.time() |
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
#!/bin/bash | |
play() { | |
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_$1.m3u8" | |
echo $playlist | |
if mpc | |
then | |
mpc add $playlist | |
mpc play | |
else | |
mplayer $playlist |