Created
January 3, 2013 21:27
-
-
Save pboehm/4447471 to your computer and use it in GitHub Desktop.
SQL query that extracts your watched episodes from the mediatomb db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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