Skip to content

Instantly share code, notes, and snippets.

@zmike808
zmike808 / plexDownload.php
Created February 2, 2018 04:29 — forked from kmark/plexDownload.php
The Plex Universal Transcoder Downloader mimics the actions of the Plex/Web media flash player to download transcoded media. The differences begin when the downloader saves the streamed data and pieces it together. First a start.m3u8 playlist file is requested from the server with a query string that defines the transcoding options. Inside the …
<?php
/*******************************************************************************
* Plex Universal Transcoder Downloader v1.3 *
* See --help or --usage for more info *
*******************************************************************************
* Copyright 2013 Kevin Mark *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
@zmike808
zmike808 / exec_command_no_sessions.py
Created December 19, 2017 22:48 — forked from JonnyWong16/exec_command_no_sessions.py
Execute a command when no Plex sessions are active.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Execute a command when no Plex sessions are active.
# Author: /u/SwiftPanda16
# Requires: plexapi
import shlex
import subprocess
from plexapi.server import PlexServer
@zmike808
zmike808 / notify_user_favorites.py
Created March 1, 2017 21:10 — forked from blacktwin/notify_user_favorites.py
Notify users of recently added episode to show that they have watched at least LIMIT times via email.
"""
Notify users of recently added episode to show that they have watched at least LIMIT times via email.
Block users with IGNORE_LST.
Arguments passed from PlexPy
-sn {show_name} -ena {episode_name} -ssn {season_num00} -enu {episode_num00} -srv {server_name} -med {media_type}
-pos {poster_url} -tt {title} -sum {summary} -lbn {library_name} -grk {grandparent_rating_key}
You can add more arguments if you want more details in the email body
Adding to PlexPy