fix media delete event.

This commit is contained in:
Hellowlol
2018-05-21 02:21:17 +02:00
parent 7f857fa761
commit 7bfaf3166a
2 changed files with 43 additions and 37 deletions
+15 -1
View File
@@ -138,7 +138,8 @@ def test_manually_correct_theme():
pass
def test_timeline(intro_file, HT, monkeypatch, mocker, episode):
# Disable for now. Add this to test_check.
def _test_timeline(intro_file, HT, monkeypatch, mocker, episode):
def fetchItem(i):
return episode
@@ -164,6 +165,19 @@ def test_timeline(intro_file, HT, monkeypatch, mocker, episode):
"updatedAt": 1526744644}]
}
deleted_dict = {'type': 'timeline',
'size': 1,
'TimelineEntry': [{'identifier': 'com.plexapp.plugins.library',
'sectionID': 2,
'itemID': 2041,
'parentItemID': 2035,
'rootItemID': 2032,
'type': 4,
'title': '2 Broke Girls S01 E06',
'state': 9,
'metadataState': 'deleted',
'updatedAt': 1526859691}]}
plex.timeline(data)
plex.POOL.close()
plex.POOL.join()