-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExample.au3
44 lines (28 loc) · 1.27 KB
/
Example.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "TVMazeAPI_UDF.au3"
#include <Array.au3>
;===========TV Schedule for next 2 days==========
;$TV_Schedule=_GetTVSchedule()
;_ArrayDisplay($TV_Schedule,"TV Schedule")
;===============Search for a show================
$sString = InputBox("TV Show Title" , "Name Of TV Show?" , "" , "" , 400 , 140)
$SearchResults=_SearchShow($sString)
$err = @error
_ArrayDisplay($SearchResults,"TV Show")
;===============Get show info/details============
$iIndex = _ArraySearch($SearchResults, $sString, 0, 0, 0, 0, 1)
If $iIndex < 0 Then $iIndex = 0
$ShowID=$SearchResults[$iIndex][1];
$ShowInfo = _GetShowInfo($ShowID)
_ArrayDisplay($ShowInfo,"Show Info")
;=============Get the cast of a show=============
$Cast=_GetCast($ShowID)
_ArrayDisplay($Cast,"Cast")
;============Get all Episodes of a Show==========
$AllEpisodes = _GetShowEpisodes($ShowID)
_ArrayDisplay($AllEpisodes,"All Episodes")
;========Filter Episodes by selected season======
$FilteredBySeason2 = _FilterBySeason($AllEpisodes, "1")
_ArrayDisplay($FilteredBySeason2,"Filtered by episodes of season 1")
;====Get only last and next episode of a show====
$LastAndNextEpisode = _GetShowEpisodes($ShowID, 0, @TempDir, 0, 1)
_ArrayDisplay($LastAndNextEpisode,"Last and Next Episodes only")