Skip to content

Instantly share code, notes, and snippets.

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJBbnRpWmVybyBHYW1lcyIsImF1ZCI6InlvdXJfYXVkaWVuY2VfbmFtZV9oZXJlIiwiaWF0IjoxNjM2ODk5MDY2LCJleHAiOjE2Mzk0OTEwNjYsIm5iZiI6MTUwMDAwMDAwMCwiZGF0YSI6eyJlbmNyeXB0ZWQiOiJEb2xKR3dWMnZwdDlFTGMyS01LSTZSMlhSSngxNFdBcVwvSzFreVkrcVwvREVrcnR5b2xSKzIwcHh0UWY0ZldXZEJZVkVFZjlxcVVhV1hDbll4aklzMmZQa2xXb0ppNm52Yk1EalBVZElGaU9nNTNOVEMyZHZjbGlzNjZvOEJsTitKWHFGMFpIZ1ZiRnZ0eUU2a0VLQ2UyYmJwb0JiQWZKUWZ6ZTJPQzlLVVB3dk10SitnVFBwTGxZTnpCUnVWcHJxK05IYnM1NzVzbmhXbUE5VTgwc1hYaGh1Z0w5b3loOTAyb0swYXlOazAyaUlrRGRDb1E1NEE3RDdNSHU2aXV3MDJhXC82TXBCU0o4VklcL0lORXR3SHNYV0h0U0FkVXlRSkxDOFM5aTNvM2E4eHZndG9DVWtydzVveHZacjRuVmxZM3YifX0.ccHPMM5Oy3Yvb_KHJOs8RlMzww_fY4qy63OEXea-pAE
@pmow
pmow / gist:167a04d67da6488b7ec29ecbfc92c30b
Created November 13, 2019 04:47
generate symlinked structure of unwatched or tagged items
from plexapi.myplex import MyPlexAccount
import os, sys, regex
path = "/home/pmow/plex_paths"
account = MyPlexAccount('username', 'password')
plex = account.resource('servername').connect() # returns a PlexServer instance
# oldpath,newpath,spath(specific/section path)
def symit(location,path,spath):
print(os.path.basename(location))
@pmow
pmow / flickrflatten.py
Created December 15, 2018 16:35
flickr_flatten
import os
import fnmatch
import json
from functions import *
verbose = 0
jsonpath= '/mnt/media2/Flickr.Dump/json/'
mediapath= '/mnt/media2/Flickr.Dump/media/'
outputpath= '/mnt/media2/Flickr.Dump/output/'