Skip to content

Instantly share code, notes, and snippets.

@jimcampbell100
jimcampbell100 / playlisttomood.py
Created June 11, 2023 18:02
Set Plex Mood to Playlist Name
# import plexapi
import requests
import sys
from plexapi.server import PlexServer
from plexapi.utils import tag_helper
# Next two lines need to be reset to match your server
PLEX_URL = 'http://192.168.0.xxx:32400'
@Alucard316
Alucard316 / dvr.bat
Last active November 4, 2022 21:48
Windows DVR PostProcess Batch Script for Jellyfin
@echo off
:: This is the simplest batch script known to man.
:: Takes the unplayable ts_mpeg file from a recorded Live TV program in Windows-Jellyfin and outputs it to h264 mkv, then removes the Transport Stream (NOT Typescript XD) file.
:: This goes in my base Jellyfin folder, sitting alongside the "system" directory per the wiki recommendation for hosting jellyfin on windows.
:: To enable in Jellyfin, navigate to Admin Dashboard->DVR->Select this script file under Post-processing application, and leave the default CLI argument of "{path}" (WITH the quotes).
:: To increase output quality, lower the -crf value and/or change the -preset value to slow or veryslow. Raise the value and change preset to medium or fast for smaller files.
:: All thanks goes to thornbill and his linux script
set WORKDIR=%~d1%~p1
@RealDyllon
RealDyllon / pandora-enhancer-chrome.js
Last active December 21, 2021 23:16
Enhance Pandora via Tampermonkey / Greasemonkey
// ==UserScript==
// @name Pandora Enhancer
// @namespace https://www.pandora.com/
// @version 1.0
// @description hides perma-sidebar for ads
// @author www.github.com/RealDyllon
// @match https://www.pandora.com/*
// @icon https://www.google.com/s2/favicons?domain=pandora.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@thornbill
thornbill / post-process.sh
Last active February 24, 2024 22:16
DVR post processing script for Jellyfin
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
PWD="$(pwd)"
die () {
@JonnyWong16
JonnyWong16 / sync_playlists_to_users.py
Last active June 27, 2024 08:43
Sync Plex playlists to shared users.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi
from plexapi.exceptions import NotFound
from plexapi.server import PlexServer
// ==UserScript==
// @name Pandora tabs
// @namespace http://fehrenbacher.com
// @description adds buttons that search for the current song title and artist on YouTube or Google
// @downloadUrl https://gist.github.com/oxchronxo/920b078334d6e9c8c3f4aeb5ad3e4279/raw/bec32ed408c5e259ba83f1db97d8094a9e1eef50/pandora-tab.user.js
// @include http*://*.pandora.com/*
// @version 1.3
// @grant none
// ==/UserScript==
var title = document.getElementsByClassName('songTitle') [0].text; //get the song title