Skip to content

Instantly share code, notes, and snippets.

@pboehm
Created January 3, 2013 21:27
Show Gist options
  • Save pboehm/4447471 to your computer and use it in GitHub Desktop.
Save pboehm/4447471 to your computer and use it in GitHub Desktop.
SQL query that extracts your watched episodes from the mediatomb db
SELECT
(SELECT location
FROM mt_cds_object
WHERE id = m.ref_id) as episode_path
FROM mt_cds_object m
WHERE ref_id is not null
AND episode_path LIKE "%/pi/Queue/%"
AND flags != 1
ORDER BY episode_path;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment