Skip to content

Instantly share code, notes, and snippets.

@greatvc
greatvc / gist:04a5bf977cdf33795aba917b0c830bf6
Last active August 22, 2026 16:39
Raw Calendar JSON
[
{
"show": {
"ids": {
"imdb": "tt24512262",
"plex": {
"guid": "684e4416951fc609328138a4",
"slug": "fightland"
},
"slug": "fightland",
@greatvc
greatvc / Add-TraktLibrary.ps1
Created July 22, 2026 14:22
Trakt Collection Fixer — manually add and re-tag episodes/movies missing from V3
Clear-Host
# ============================================================================
# Add-TraktToCollection.ps1
# Manually adds a single TV episode OR movie to your Trakt collection with
# metadata (media_type, resolution, audio, audio_channels, hdr, 3d) via the
# Trakt API - replaces the manual "add to library" flow Trakt removed from
# the new website (e.g. when Sonarr fails to auto-add an episode).
# Auto-detects TV vs movie from the URL you paste in.
# ============================================================================
@greatvc
greatvc / SendEmail.py
Created November 16, 2015 08:57
Send email of corrupted.txt if videos are found inside. Great tool for notifying you for corrupted videos.
#!/usr/bin/python
import os
import sys
import smtplib
if os.stat('path to Corrupted.txt').st_size == 0:
sys.exit()
from email.MIMEMultipart import MIMEMultipart
@greatvc
greatvc / checkvideos.py
Last active November 16, 2015 08:56
Check videos if they are corrupted at the end by seeking to 99% of the video. Return true if it is corrupted.
#!/usr/bin/python
import os
import sys
MyVideo=""
def checkfile(filename):
command = "echo 'seek 99 1' | mplayer -slave -msglevel all=4 -benchmark -vo null -nosound \"" + filename + "\" 2>&1"
output = os.popen(command).read()