serenity_now 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/serenity_now/serenity_api.rb +13 -0
- data/lib/serenity_now/version.rb +1 -1
- metadata +1 -1
@@ -13,6 +13,10 @@ require 'httparty'
|
|
13
13
|
# Show Info + Episode List /full_show_info.php?sid=SHOWID
|
14
14
|
# Episode List /episode_list.php?sid=SHOWID
|
15
15
|
# Episode Info /episodeinfo.php?show=SHOWNAME&exact=1&ep=SEASONxEPISODE
|
16
|
+
# US Episode List /fullschedule.php?country=US
|
17
|
+
# UK Episode List /fullschedule.php?country=UK
|
18
|
+
# NL Episode List /fullschedule.php?country=NL
|
19
|
+
# US Episode List (24h) /fullschedule.php?country=US&24_format=1
|
16
20
|
#
|
17
21
|
# Examples for 'Buffy'
|
18
22
|
# --------------------
|
@@ -60,5 +64,14 @@ module SerenityNow
|
|
60
64
|
self.class.get( '/episodeinfo.php', query: query )
|
61
65
|
end
|
62
66
|
|
67
|
+
#
|
68
|
+
# Full Schedule
|
69
|
+
# available options: { country: 'US', 24_format: 1 }
|
70
|
+
#
|
71
|
+
def schedule( country = 'US', 24h = false )
|
72
|
+
query = { country: country, 24_format: (24h ? 1 : 0) }
|
73
|
+
self.clas.get( '/fullschedule.php', query: query )
|
74
|
+
end
|
75
|
+
|
63
76
|
end
|
64
77
|
end
|
data/lib/serenity_now/version.rb
CHANGED