tivohmo 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/README.md +8 -0
- data/TODO +4 -0
- data/lib/tivohmo/adapters/filesystem/application.rb +37 -0
- data/lib/tivohmo/adapters/filesystem/file_item.rb +3 -1
- data/lib/tivohmo/adapters/filesystem/folder_container.rb +33 -29
- data/lib/tivohmo/adapters/filesystem/group.rb +22 -0
- data/lib/tivohmo/adapters/filesystem.rb +1 -0
- data/lib/tivohmo/adapters/plex/category.rb +20 -13
- data/lib/tivohmo/adapters/plex/episode.rb +2 -2
- data/lib/tivohmo/adapters/plex/movie.rb +2 -2
- data/lib/tivohmo/adapters/streamio/transcoder.rb +4 -13
- data/lib/tivohmo/api/container.rb +4 -1
- data/lib/tivohmo/subtitles_util.rb +109 -0
- data/lib/tivohmo/version.rb +1 -1
- data/spec/adapters/filesystem/application_spec.rb +66 -0
- data/spec/adapters/filesystem/file_item_spec.rb +12 -0
- data/spec/adapters/filesystem/folder_container_spec.rb +23 -21
- data/spec/adapters/plex/category_spec.rb +15 -5
- data/spec/adapters/plex/episode_spec.rb +11 -0
- data/spec/adapters/plex/movie_spec.rb +11 -0
- data/spec/adapters/streamio/transcoder_spec.rb +24 -0
- data/spec/fixtures/vcr/TivoHMO_Adapters_Plex_Category/_children/should_have_children.yml +698 -168
- data/spec/fixtures/vcr/TivoHMO_Adapters_Plex_Category/_children/should_have_children_with_embedded_subtitles.yml +22 -22
- data/spec/fixtures/vcr/TivoHMO_Adapters_Plex_Category/_children/should_have_children_with_subtitles.yml +262 -91
- data/spec/fixtures/vcr/TivoHMO_Adapters_Plex_Episode/_initialize/should_instantiate_with_subtitle.yml +444 -0
- data/spec/fixtures/vcr/TivoHMO_Adapters_Plex_Movie/_initialize/should_instantiate_with_subtitle.yml +334 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/subtitles_util_spec.rb +68 -0
- data/tivohmo.gemspec +1 -0
- metadata +24 -3
@@ -27,9 +27,9 @@ http_interactions:
|
|
27
27
|
X-Plex-Content-Original-Length:
|
28
28
|
- '2988'
|
29
29
|
X-Plex-Content-Compressed-Length:
|
30
|
-
- '
|
30
|
+
- '788'
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '788'
|
33
33
|
Cache-Control:
|
34
34
|
- no-cache
|
35
35
|
body:
|
@@ -37,27 +37,27 @@ http_interactions:
|
|
37
37
|
string: |
|
38
38
|
<?xml version="1.0" encoding="UTF-8"?>
|
39
39
|
<MediaContainer size="6" allowSync="0" identifier="com.plexapp.plugins.library" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1420767545" title1="Plex Library">
|
40
|
-
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="8" type="movie" title="Adult Movies" composite="/library/sections/8/composite/
|
40
|
+
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="8" type="movie" title="Adult Movies" composite="/library/sections/8/composite/1425683728" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="608ca2bb-e5f2-49ab-b040-dbb95ac5631e" updatedAt="1425683728" createdAt="1424196765">
|
41
41
|
<Location id="12" path="/Users/mconway/Movies/Adult Movies" />
|
42
42
|
</Directory>
|
43
|
-
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="2" type="show" title="Adult TV Shows" composite="/library/sections/2/composite/
|
43
|
+
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="2" type="show" title="Adult TV Shows" composite="/library/sections/2/composite/1425683755" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="af8295a272d545681d462eed8025113d09195007" updatedAt="1425683755" createdAt="1332713366">
|
44
44
|
<Location id="6" path="/Users/mconway/Movies/Adult TV Shows" />
|
45
45
|
</Directory>
|
46
|
-
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="5" type="movie" title="Kid Movies" composite="/library/sections/5/composite/
|
46
|
+
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="5" type="movie" title="Kid Movies" composite="/library/sections/5/composite/1425683756" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="340479de-6015-4e6c-9ec0-c74f936f4013" updatedAt="1425683756" createdAt="1411071543">
|
47
47
|
<Location id="9" path="/Users/mconway/Movies/Kid Movies" />
|
48
48
|
</Directory>
|
49
|
-
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="4" type="show" title="Kid TV Shows" composite="/library/sections/4/composite/
|
49
|
+
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="4" type="show" title="Kid TV Shows" composite="/library/sections/4/composite/1425683757" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="fa1dde48-f6dd-44f7-91f3-9283160dc953" updatedAt="1425683757" createdAt="1411071497">
|
50
50
|
<Location id="8" path="/Users/mconway/Movies/Kid TV Shows" />
|
51
51
|
</Directory>
|
52
|
-
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="6" type="movie" title="Test Movies" composite="/library/sections/6/composite/
|
52
|
+
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="6" type="movie" title="Test Movies" composite="/library/sections/6/composite/1425683758" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="fbc810b7-6b51-40ba-a3c5-9a2c391e5a3d" updatedAt="1425683758" createdAt="1423935251">
|
53
53
|
<Location id="10" path="/Users/mconway/Movies/TivoHMOTest/Movies" />
|
54
54
|
</Directory>
|
55
|
-
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="7" type="show" title="Test TV Shows" composite="/library/sections/7/composite/
|
55
|
+
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="7" type="show" title="Test TV Shows" composite="/library/sections/7/composite/1425683759" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="4c37cd05-86d7-4a34-8d5b-aa2fb261a136" updatedAt="1425683759" createdAt="1423935290">
|
56
56
|
<Location id="11" path="/Users/mconway/Movies/TivoHMOTest/TV Shows" />
|
57
57
|
</Directory>
|
58
58
|
</MediaContainer>
|
59
59
|
http_version:
|
60
|
-
recorded_at: Sun,
|
60
|
+
recorded_at: Sun, 08 Mar 2015 14:55:20 GMT
|
61
61
|
- request:
|
62
62
|
method: get
|
63
63
|
uri: http://localhost:32400/library/sections
|
@@ -85,9 +85,9 @@ http_interactions:
|
|
85
85
|
X-Plex-Content-Original-Length:
|
86
86
|
- '2988'
|
87
87
|
X-Plex-Content-Compressed-Length:
|
88
|
-
- '
|
88
|
+
- '788'
|
89
89
|
Content-Length:
|
90
|
-
- '
|
90
|
+
- '788'
|
91
91
|
Cache-Control:
|
92
92
|
- no-cache
|
93
93
|
body:
|
@@ -95,27 +95,27 @@ http_interactions:
|
|
95
95
|
string: |
|
96
96
|
<?xml version="1.0" encoding="UTF-8"?>
|
97
97
|
<MediaContainer size="6" allowSync="0" identifier="com.plexapp.plugins.library" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1420767545" title1="Plex Library">
|
98
|
-
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="8" type="movie" title="Adult Movies" composite="/library/sections/8/composite/
|
98
|
+
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="8" type="movie" title="Adult Movies" composite="/library/sections/8/composite/1425683728" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="608ca2bb-e5f2-49ab-b040-dbb95ac5631e" updatedAt="1425683728" createdAt="1424196765">
|
99
99
|
<Location id="12" path="/Users/mconway/Movies/Adult Movies" />
|
100
100
|
</Directory>
|
101
|
-
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="2" type="show" title="Adult TV Shows" composite="/library/sections/2/composite/
|
101
|
+
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="2" type="show" title="Adult TV Shows" composite="/library/sections/2/composite/1425683755" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="af8295a272d545681d462eed8025113d09195007" updatedAt="1425683755" createdAt="1332713366">
|
102
102
|
<Location id="6" path="/Users/mconway/Movies/Adult TV Shows" />
|
103
103
|
</Directory>
|
104
|
-
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="5" type="movie" title="Kid Movies" composite="/library/sections/5/composite/
|
104
|
+
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="5" type="movie" title="Kid Movies" composite="/library/sections/5/composite/1425683756" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="340479de-6015-4e6c-9ec0-c74f936f4013" updatedAt="1425683756" createdAt="1411071543">
|
105
105
|
<Location id="9" path="/Users/mconway/Movies/Kid Movies" />
|
106
106
|
</Directory>
|
107
|
-
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="4" type="show" title="Kid TV Shows" composite="/library/sections/4/composite/
|
107
|
+
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="4" type="show" title="Kid TV Shows" composite="/library/sections/4/composite/1425683757" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="fa1dde48-f6dd-44f7-91f3-9283160dc953" updatedAt="1425683757" createdAt="1411071497">
|
108
108
|
<Location id="8" path="/Users/mconway/Movies/Kid TV Shows" />
|
109
109
|
</Directory>
|
110
|
-
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="6" type="movie" title="Test Movies" composite="/library/sections/6/composite/
|
110
|
+
<Directory allowSync="0" art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png" key="6" type="movie" title="Test Movies" composite="/library/sections/6/composite/1425683758" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="fbc810b7-6b51-40ba-a3c5-9a2c391e5a3d" updatedAt="1425683758" createdAt="1423935251">
|
111
111
|
<Location id="10" path="/Users/mconway/Movies/TivoHMOTest/Movies" />
|
112
112
|
</Directory>
|
113
|
-
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="7" type="show" title="Test TV Shows" composite="/library/sections/7/composite/
|
113
|
+
<Directory allowSync="0" art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="7" type="show" title="Test TV Shows" composite="/library/sections/7/composite/1425683759" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="4c37cd05-86d7-4a34-8d5b-aa2fb261a136" updatedAt="1425683759" createdAt="1423935290">
|
114
114
|
<Location id="11" path="/Users/mconway/Movies/TivoHMOTest/TV Shows" />
|
115
115
|
</Directory>
|
116
116
|
</MediaContainer>
|
117
117
|
http_version:
|
118
|
-
recorded_at: Sun,
|
118
|
+
recorded_at: Sun, 08 Mar 2015 14:55:20 GMT
|
119
119
|
- request:
|
120
120
|
method: get
|
121
121
|
uri: http://localhost:32400/library/sections/6/newest
|
@@ -270,7 +270,7 @@ http_interactions:
|
|
270
270
|
Lz4KPFJvbGUgdGFnPSJNYWRoYXZhbiIgLz4KPC9WaWRlbz4KPC9NZWRpYUNv
|
271
271
|
bnRhaW5lcj4K
|
272
272
|
http_version:
|
273
|
-
recorded_at: Sun,
|
273
|
+
recorded_at: Sun, 08 Mar 2015 14:55:20 GMT
|
274
274
|
- request:
|
275
275
|
method: get
|
276
276
|
uri: http://localhost:32400/library/metadata/1175
|
@@ -338,7 +338,7 @@ http_interactions:
|
|
338
338
|
</Video>
|
339
339
|
</MediaContainer>
|
340
340
|
http_version:
|
341
|
-
recorded_at: Sun,
|
341
|
+
recorded_at: Sun, 08 Mar 2015 14:55:20 GMT
|
342
342
|
- request:
|
343
343
|
method: get
|
344
344
|
uri: http://localhost:32400/library/metadata/1201
|
@@ -473,7 +473,7 @@ http_interactions:
|
|
473
473
|
VmJqa2NCb3NUVE84em9LLmpwZyIgLz4KPC9WaWRlbz4KPC9NZWRpYUNvbnRh
|
474
474
|
aW5lcj4K
|
475
475
|
http_version:
|
476
|
-
recorded_at: Sun,
|
476
|
+
recorded_at: Sun, 08 Mar 2015 14:55:20 GMT
|
477
477
|
- request:
|
478
478
|
method: get
|
479
479
|
uri: http://localhost:32400/library/metadata/1169
|
@@ -591,5 +591,5 @@ http_interactions:
|
|
591
591
|
bWRiLm9yZy90L3Avb3JpZ2luYWwvak1zSHFscno0MVpwRDdSRXlzNzhaYUNU
|
592
592
|
TTNVLmpwZyIgLz4KPC9WaWRlbz4KPC9NZWRpYUNvbnRhaW5lcj4K
|
593
593
|
http_version:
|
594
|
-
recorded_at: Sun,
|
594
|
+
recorded_at: Sun, 08 Mar 2015 14:55:20 GMT
|
595
595
|
recorded_with: VCR 2.9.3
|