-
Notifications
You must be signed in to change notification settings - Fork 0
/
TMDb.API.mrc
2372 lines (2318 loc) · 131 KB
/
TMDb.API.mrc
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
**********************************************************************************************************************
** * ************************************************************************************************************ * **
** * The Movie Database mIRC API Wrapper * _/_/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/_/ * **
** * Written by ProIcons * _/ _/_/ _/_/ _/ _/ _/ _/_/ _/ _/ _/ * **
** * Version: 1.0.1 * _/ _/ _/_/ _/ _/ _/ _/_/_/_/ _/_/ _/ _/ _/_/_/ _/ * **
** * API Version: 3 * _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/ _/ * **
** * TDMb API * _/ _/ _/ _/_/_/ _/_/_/_/ _/ _/ _/ _/_/_/ * **
** * ************************************************************************************************************ * **
** * themoviedb.org is a free and community maintained movie database. * **
** * It's completely user built by people like you. TMDb is currently * **
** * used by millions of people every month and with our and powerful * **
** * API, also used by many popular media centers like XBMC, Plex, * **
** * MythTV and MediaPortal. * **
** * * **
** * API is available for everyone to use, including commercial users. * **
** * A TMDb user account is required to request an API key. Commercial * **
** * users are approved on a per application basis. As always, you must * **
** * attribute TMDb as the source of your data. Please be sure to read * **
** * the API FAQ (http://www.themoviedb.org/faq/api). * **
** * * **
** * Terms of Use * **
** * By using this API you are agreeing to the terms of use. You can read it here. * **
** * https://www.themoviedb.org/about/api-terms * **
** * * **
** * Forums: http://www.themoviedb.org/talk * **
** * * **
** * Libraries and Wrappers: * **
** * - ActionScript ( by swagger ) https://github.com/swagnag/TheMovieDatabaseAS3 * **
** * - C#.Net ( by watway ) http://wattmdb.codeplex.com/ * **
** * - C#.Net ( by asnoek ) https://github.com/Fishes/TMDbWrapper * **
** * - C#.Net ( by LordMike ) https://github.com/LordMike/TMDbLib * **
** * - Haskell ( by Peter Jones ) http://hackage.haskell.org/package/themoviedb * **
** * - Java/Clojure ( by runexec ) https://github.com/runexec/Moov * **
** * - Java ( by Omertron ) https://github.com/Omertron/api-themoviedb * **
** * - Node.js ( by raqqa ) https://github.com/raqqa/node-tmdb * **
** * - Node.js ( by danzajdband ) https://github.com/danzajdband/moviedb * **
** * - Perl ( by mithun ) https://metacpan.org/release/TMDB * **
** * - Perl ( by MariaB ) http://search.cpan.org/~mariab/ * **
** * - PHP ( by glamorous ) https://github.com/glamorous/TMDb-PHP-API * **
** * - PHP ( by pixelead0 ) https://github.com/pixelead0/tmdb_v3-PHP-API- * **
** * - PHP ( by kirboogh ) https://github.com/kriboogh/TMDB4PHP * **
** * - Python ( by wagner ) https://github.com/wagnerrp/pytmdb3/tree/master/tmdb3 * **
** * - Python ( by doganaydin ) https://github.com/doganaydin/themoviedb * **
** * - Ruby ( by ahmetabdi ) https://github.com/ahmetabdi/themoviedb * **
** * - Ruby ( by iriomk ) https://github.com/Irio/ruby-tmdb * **
** * * **
** * - mIRC ( by ProIcons ) http://www.hawkee.com/snippet/10108/ * **
** * * **
** * * **
** * Requirements * **
** * - $json_utf8 by ProIcons (included) * **
** * - URL Encode by ZigWap (included) * **
** * - mIRC Version 6.35+ * **
** * - TMDb API-key * **
** * * **
** * Known Bugs: * **
** * - Some instability has been noticed in the long page results. The last socket seems to load faster * **
** * than the previous and begin process without them. In the next update a rebuild of the page loading * **
** * system will be made , that will load the next page whenever the previous is finished. * **
** * * **
** * Version * **
** * - v1.0.0 * **
** * * Initial Release * **
** * - V1.0.1 * **
** * * Fixed bug on Configuration Wizard where, on variable _tmdb_clear_process instead of ms it was asking for * **
** * seconds. * **
** * * **
** * Available Methods * **
** * - All method are listed here. Everything is documentated. Optional Parameteres * **
** * are between brackets []. Also look into the TMDb-documentation for better * **
** * understanding of the possible methods. * **
** * * **
** * Basic Command Concept: * **
** * - /tmdb <method> [-cpaiyrqdls] [ <callback> [<cbheader> <cbfooter>] ] [page] [is_for_adults] [year] * **
** * [primary_release_year] [custom callback arguments variable] [cache] <query> * **
** * * **
** * - $tmdb([<query>]).method(<method>)[.page(<page>).adults(<true/false>).year(<year>).release_year(<year>) * **
** * .language(<lang>).secure().cache().callback(<callback alias>).cbheader(<cbheader>) * **
** * .cbfooter(<cbfooter>)] * **
** * -> Methods : * **
** * - search/movie * **
** * - Searches for movies based on your query. Displays 20 Results per Page. * **
** * - Available Switches are: -cpayrq * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -p [ page (integer) ] * **
** * * Switch -a [ is_for_adults ( true / false ) ] * **
** * * Switch -y [ year (integer) ] * **
** * * Switch -r [ primary_release_year ] * **
** * * Switch -q [ custom_callback_arguments_variable (valid variable) ]. * **
** * * **
** * - search/collection * **
** * - Searches for movie collections based on your query. Displays 20 Results per Page. * **
** * - Available Switches are: -cpq * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -p [ page (integer) ] * **
** * * Switch -q [ custom_callback_arguments_variable (valid variable) ]. * **
** * * **
** * - search/person * **
** * - Searches for actors/actreess based on your query. Displays 20 Results per Page. * **
** * - Available Switches are: -cpaq * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -p [ page (integer) ] * **
** * * Switch -a [ is_for_adults ( true / false ) ] * **
** * * Switch -q [ custom_callback_arguments_variable (valid variable) ]. * **
** * * **
** * - search/company * **
** * - Searches for production companies based on your query. Displays 20 Results per Page. * **
** * - Available Switches are: -cpq * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -p [ page (integer) ] * **
** * * Switch -q [ custom_callback_arguments_variable (valid variable) ]. * **
** * * **
** * - search/keyword * **
** * - Searches for movie keywords based on your query. Displays 20 Results per Page. * **
** * - Available Switches are: -cpaq * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -p [ page (integer) ] * **
** * * Switch -q [ custom_callback_arguments_variable (valid variable) ]. * **
** * * **
** * - genre/list * **
** * - Displays all movies genres. * **
** * - Available Switches are: -cq * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -q [ custom_callback_arguments_variable (valid variable) ]. * **
** * * **
** * - clearcache * **
** * - Clears the database cache. * **
** * * **
** * - configuration * **
** * - Gets the API's Configuration * **
** * * **
** * - movie/{id} * **
** * - Displays the full info of a movie. Plus casts , alternative_titles , images , keywords , releases * **
** * trailers , translations , similar_movies * **
** * - Available Switches are: -cld * **
** * * Switch -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Switch -l [ language ] * **
** * * Switch -d * **
** * * **
** * - Accepts a valid INTEGER number, or a VALID IMDb ID. * **
** * * **
** * - movie/latest * **
** * - Get the latest movie added to the database. * **
** * - Available Switches are: -c * **
** * * **
** * - movie/upcoming * **
** * - Get the list of upcoming movies. This list refreshes every day. * **
** * - Available Switches are: -pc * **
** * * **
** * - movie/now_playing * **
** * - Get the list of movies playing in theatres. This list refreshes every day. * **
** * - Available Switches are: -pc * **
** * * **
** * - movie/popular * **
** * - Get the list of popular movies on The Movie Database. This list refreshes every day. * **
** * - Available Switches are: -pc * **
** * * **
** * - movie/top_rated * **
** * - Get the list of top rated movies. By default, this list will only include movies that have 10 or more * **
** * votes. This list refreshes every day. * **
** * - Available Switches are: -pc * **
** * * **
** * - person/{id} * **
** * - Displays the full info of an actor/actress. Plus combined_credits,images,changes * **
** * - Available Switches are: -cd * **
** * * **
** * - person/latest * **
** * - Get the latest person added to the database. * **
** * - Available Switches are: -c * **
** * * **
** * - person/popular * **
** * - Get the list of popular actors on The Movie Database. This list refreshes every day. * **
** * - Available Switches are: -pc * **
** * * **
** * - list/{id} * **
** * - Get the selected list of movies that a user has created. * **
** * - Available Switches are: -cd * **
** * * **
** * - collection/{id} * **
** * - Get the selected collection of movies. In movie query check for belongs_to_collection attribute. * **
** * - Available Switches are: -cd * **
** * * **
** * - validate * **
** * - validates your api-key that is stored in %_tmdb_api_key variable * **
** * - Available Switches are: -c * **
** * * **
** * -> Switches : * **
** * Switches are in highly restricted order like it shown in the comand. * **
** * You CANNOT change the order of the arguments passed in ths command. * **
** * Example: * **
** * * **
** * (valid) /tmdb search/movie -cp callback_function 1 Movie * **
** * (valid) /tmdb search/mvoie -cp callback_function callback_header callback_footer 1 Movie * **
** * (invalid) /tmdb search/movie -pc 1 callback_function Movie * **
** * (invalid) /tmdb search/movie -pc 1 callback_function callback_header callback_footer Movie * **
** * (valid) /tmdb search/movie -pc callback_function 1 Movie. * **
** * * **
** * (valid) //echo -a $tmdb(Movie).method(search/movie).callback(function).page(1) * **
** * (valid) //echo -a $tmdb(Movie).method(search/movie).callback(function).cbheader(h).cbfooter(f).page(1) * **
** * (invalid) //echo -a $tmdb().method(search/movie).movie(Movie).callback(function).page(1) * **
** * (valid) //echo -a $tmdb().method(genre/list) * **
** * * **
** * No matter how the switches are arranged in the /alias mode. Their OPTIONS are highly restricted in their * **
** * position as deomnstrated in our default command. * **
** * * **
** * * Switch : -c [ <callback> [<cbheader> <cbfooter>] ] * **
** * * Object Call : .callback(<callback>) [.cbheader([<cbheader>]) .cbfooter([<cbfooter>])] * **
** * - defines a default callback alias that all the results will be parsed on it * **
** * also you can define an alias right before the call of the callback alias and * **
** * an alias right after the call of the callback. * **
** * Be NOTICED. if you define a <cbheader> you MUST also define a <cbfooter>. * **
** * if you DON't want footer but you want header you can define alias for footer * **
** * _tmdb_void , or for header in the opossite case. * **
** * Every callback alias must have in the first line this: * **
** * * **
** * if ($isid) return $true . * **
** * * **
** * So its basic form will be something like: * **
** * * **
** * alias callback [ * **
** * if ($isid) return $true * **
** * ;..commands... * **
** * ] * **
** * * **
** * For each method some different arguments are passed into them. * **
** * you can set the default arguments for each method from the _tmdb_init * **
** * alias or you can add on each query different arguments. See switch -q. * **
** * on the cbheader and cbfooter callbacks some other arguments are passed * **
** * * **
** * by default the alias that callbacks our query is * **
** * * **
** * alias _tmdb_def_cb [ * **
** * if ($isid) return $true * **
** * echo -a [ [ $1- ] ] * **
** * ] * **
** * * **
** * So it echoes all the result on your active window. * **
** * * **
** * There are default assigned cbheader, cbfooter aliases in _tmdb_init. You * **
** * can change them to _tmdb_void to print only the result you want. * **
** * %_tmdb_cb_global @socket @timestart @timeend @totalpages @query @method @url @cmd @timeproces * **
** * * **
** * * **
** * @socket : Holds the last socket name of the result of the query we made.For example if there's* **
** * a query and it have more than 1 page and less and equal than 20, then it will load * **
** * all pages. So the @socket will hold the name of the last processed socket. * **
** * @timestart : Holds the Unix Time/Ticks that the query started. You can define either ctime/ticks * **
** * on its variable on _tmdb_init. * **
** * @timeend : Holds the Unix Time/Ticks that the query finished. You can define either * **
** * ctime/ticks on its variable on _tmdb_init. * **
** * @totalpages : Holds the totalpages [where supported] of the results. * **
** * @query : Holds the query we made to the api. * **
** * @method : Holds the method we used to the api. * **
** * @url : Holds the final encoded url we queried to get the results. * **
** * @cmd : Holds the EXACT command we pressed in order these results to be shown. * **
** * @timeprocess: Holds the Unix Time/Ticks that the process of the data finished. You can define * **
** * either ctime/ticks on its variable on _tmdb_init. * **
** * * **
** * On the callback headers and footers for the method movie/{id} the commas, are replaced with dots. * **
** * in the @url. * **
** * * **
** * Available Arguments for method: * **
** * - search/movie: * **
** * @is_for_adults @backdrop_path @id @original_title @release_date @year @poster_path * **
** * @popularity @title @vote_average @vote_count * **
** * Variable Holds Them: %_tmdb_cb_ms * **
** * * **
** * @is_for_adults : Returns if the movie is nsfw* * **
** * @backdrop_path : Returns the Backdrop Image Path. * **
** * @id : Returns the id of the movie (usefull for full movie query) * **
** * @original_title: Returns the Original Title of the movie * **
** * @release_date : Returns the full date that movie released * **
** * @year : Returns only the year that movie released * **
** * @poster_path : Returns the Poster Image Path. * **
** * @popularity : Returns a float number of how much popular the movie is. * **
** * @title : Returns the title of the movie * **
** * @vote_average : Returns the vote average of the movie * **
** * @vote_count : Returns the Number of Poeple voted in order vote_average to be calculated. * **
** * * **
** * - search/collection * **
** * @backdrop_path @id @name @poster_path * **
** * Variable Holds Them: %_tmdb_cb_cs * **
** * @name : Returns the name of the collection. * **
** * * **
** * - search/person * **
** * @profile_path @id @name @popularity @is_for_adults * **
** * Variable Holds Them: %_tmdb_cb_ps * **
** * @profile_path : Returns the Profile Image path. * **
** * * **
** * - search/company * **
** * @logo_path @id @name * **
** * Variable Holds Them: %_tmdb_cb_os * **
** * @logo_path : Returns the Logo Image Path. * **
** * * **
** * - search/keyword * **
** * @id @name * **
** * Variable Holds Them: %_tmdb_cb_ks * **
** * * **
** * - genre/list * **
** * @id @name * **
** * Variable Holds Them: %_tmdb_cb_gl * **
** * * **
** * - movie/{ID} * **
** * @jsonfile * **
** * Theres no variable. * **
** * In this method * **
** * * **
** * All the callbacks are executed as identifiers, so even there's a whole string on one of your * **
** * arguments it will be parsed normaly as one of $1-oo .. * **
** * * **
** * * Switch : -p [ page ] (INTEGER) * **
** * * Object Call : .page([page]) (INTEGER) * **
** * - defines in what page query must be done. for example in a query with * **
** * 30 pages you can define the page number you want to see. * **
** * Be noticed YOU MUST NOT make more than 20 simultaneous connections and * **
** * You MUST NOT make more than 30 requests in 10 seconds. * **
** * If no switch -p, defined by default this wrapper will return all pages * **
** * of the given query as long they are less or equal than 20. * **
** * You may not define as a page any NON integer and non positive number. * **
** * - Available options: a valid INTEGER number. * **
** * * **
** * * Switch : -a [ is_for_adults ] (BOOL) * **
** * * Object Call : .adult(true/false) [ is_for_adults ] (BOOL) * **
** * - Toggle the inclusion of adult titles. * **
** * - Accepted values: true/false. * **
** * * **
** * * Switch : -y [ year ] (INTEGER) * **
** * * Object Call : .year([ year ]) (INTEGER) * **
** * - ilter the results release dates to matches that include this value. * **
** * - Accepted values: a valid INTEGER Year. * **
** * * **
** * * Switch : -r [ primary_release_year ] (INTEGER) * **
** * * Object Call : .release_year([ primary_release_year ]) (INTEGER) * **
** * - Filter the results so that only the primary release dates have this value. * **
** * - Accepted values: a valid INTEGER Year. * **
** * * **
** * * Switch : -q [ custom_callback_arguments_variable ] (VARIABLE) * **
** * * Object Call : .variable([ custom_callback_arguments_variable ]) (VARIABLE) * **
** * - by default you can define on the init variables on _tmdb_init the arguments you want * **
** * to pass on each callback for each different method. Though this switchs allows you to * **
** * define for a query some other arguments without changing the init function. * **
** * For example you create a variable that holds some arguments * **
** * * **
** * %arguments @name @id * **
** * * **
** * And then you pass it to the command like this * **
** * /tmdb search/person -q arguments Angenina Jolie. * **
** * And the new arguments are now passed in our default callback. * **
** * if you want this with a custom call back it is simple... * **
** * /tmdb search/person -cq custom_callback arguments Angelina Jolie. * **
** * And you passed it to your own callback with your own arguments and now * **
** * from your callback you can access them like this: $1 for @name $2 for @id. * **
** * * **
** * * Switch : -d * **
** * * Object Call : .cache() * **
** * - if you have the variable %_tmdb_cache valued to 2. then it will search for cached content. if it * **
** * finds it displays data from there. Otherwise it will get results from the main server and then cache * **
** * them to your local database. * **
** * * **
** * * Switch : -l [ lang ] * **
** * * Object Call : .language([ lang ]) * **
** * - Specifies the result's language should the API Server return if this language is supported in the * **
** * specific search/get of data. * **
** * - Accepted values: 2char language based on ISO 639-1 Codes: * **
** * http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes * **
** * * **
** * * Switch : -s * **
** * * Object Call : .secure() * **
** * - Establish a Secure SSL Connection with the API Server. If ssl fail to load, based on your settings * **
** * query will continue in insecure connection or will halt * **
** * * **
** * * **
** * * **
** * Versioning * **
** * - For transparency and insight into release cycle, and for striving to maintain backward compatibility, * **
** * mIRC TMDb will be maintained under the Semantic Versioning guidelines as much as possible. * **
** * Releases will be numbered with the following format: * **
** * * **
** * <major>.<minor>.<patch> * **
** * * **
** * And constructed with the following guidelines: * **
** * * Breaking backward compatibility bumps the major (and resets the minor and patch) * **
** * * New additions without breaking backward compatibility bumps the minor (and resets the patch) * **
** * * Bug fixes and misc changes bumps the patch * **
** * * **
** * For more information on SemVer, please visit http://semver.org/. * **
** * * **
** * * **
** * Bug tracker * **
** * - Have a bug or a feature request? Post comment here. * **
** * - https://github.com/ProIcons/tmdb-api-msl * **
** * * **
** **************************************************************************************************************** **
**********************************************************************************************************************
*/
on *:start:{ set %_tmdb_api_ver 1.0.0-Alpha | _tmdb_init }
on *:load:{ set %_tmdb_api_ver 1.0.0-Alpha | _tmdb_init }
alias _tmdb_init {
;TMDB Api Version (Default: 3)
set %_tmdb_api_version 3
;TMDB API Host (Default: api.themoviedb.org)
set %_tmdb_api_host api.themoviedb.org
;TMDB API Port (Default: 80)
set %_tmdb_api_port 80
;TMDB API Secure Port (Default: 443)
set %_tmdb_api_secure_port 443
if (!$exists(tmdb)) .mkdir tmdb
if (!$exists(tmdb\system)) .mkdir tmdb\system
if (!$exists(tmdb\temp)) .mkdir tmdb\temp
if (!$exists(tmdb\db)) .mkdir tmdb\db
if (!$exists(tmdb\process)) .mkdir tmdb\process
if (!$exists(tmdb\images)) .mkdir tmdb\images
}
menu * {
TMDb
. $style(2) TheMovieDB API:noop
. $style(3) Version 1.0.0-Alpha:noop
.-
.Setup Wizard:_tmdb_wizard
}
alias _tmdb_wizard {
var %w = @_TMDb_CommandLine
var %m aline -p %w
var %b %m ** *************************************************************************** **
var %f %m *********************************************************************************
var %h %m **0,0:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**
var %t _tmdb_wizard_input
var %n _tmdb_wizard_input2
if (!$1) {
window -aBCde0k0w0z +l %w 0 0 688 359 $chr(32) Fixedsys 9
%f | %b
%m ** 0,0:_________0,0:0,0:______0,0:0,0:0,0:____0,0:0,0:0,0:0,0:____0,0:0,0:__0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:_0,0:0,0:0,0:0,0:0,0:0,0:0,0:_______0,0:0,0:_____0,0:0,0: **
%m ** |0,0:0,0:_0,0:0,0:0,0:_0,0:0,0:||_0,0:0,0:0,0:_0,0:`.|_0,0:0,0:0,0:\0,0:0,0:/0,0:0,0:0,0:_|[0,0:0,0:|0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:/0,0:\0,0:0,0:0,0:0,0:0,0:|_0,0:0,0:0,0:__0,0:\|_0,0:0,0:0,0:_|0,0: **
%m ** |_/0,0:|0,0:|0,0:\_|0,0:0,0:|0,0:|0,0:`.0,0:\0,0:|0,0:0,0:0,0:\/0,0:0,0:0,0:|0,0:0,0:0,0:|0,0:|.--.0,0:0,0:0,0:0,0:0,0:0,0:0,0:/0,0:_0,0:\0,0:0,0:0,0:0,0:0,0:0,0:|0,0:|__)0,0:|0,0:|0,0:|0,0:0,0:0,0: **
%m ** 0,0:0,0:0,0:0,0:|0,0:|0,0:0,0:0,0:0,0:0,0:0,0:|0,0:|0,0:0,0:|0,0:|0,0:|0,0:|\0,0:0,0:/|0,0:|0,0:0,0:0,0:|0,0:'/'`\0,0:\0,0:0,0:0,0:0,0:/0,0:___0,0:\0,0:0,0:0,0:0,0:0,0:|0,0:0,0:___/0,0:0,0:|0,0:|0,0:0,0:0,0: **
%m ** 0,0:0,0:0,0:_|0,0:|_0,0:0,0:0,0:0,0:_|0,0:|_.'0,0:/_|0,0:|_\/_|0,0:|_0,0:0,0:|0,0:0,0:\__/0,0:|0,0:0,0:_/0,0:/0,0:0,0:0,0:\0,0:\_0,0:0,0:_|0,0:|_0,0:0,0:0,0:0,0:_|0,0:|_0,0:0,0: **
%m ** 0,0:0,0:|_____|0,0:0,0:|______.'|_____||_____|[__;.__.'0,0:0,0:|____|0,0:|____||_____|0,0:0,0:|_____|0,0: **
%h | %b
%t The Movie Database API - mIRC Setup Wizard
%t API Version: %_tmdb_api_version
%b
%t Do you wish to continue ? [Y/n]
editbox @_TMDb_CommandLine Y
set %_tmdb_wizard_step 1
}
elseif ($1 == 2) {
%b
%t mIRC TMDb API Wrapper Version %_tmdb_api_ver
%t Developed by: ProIcons a.k.a Nikolas
%t 0,0::____0,0:0,0:0,0:0,0:0,0:0,0:0,0:_0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:__0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:___0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:_0,0:0,0::::::::::::
%t 0,0:/0,0:___|0,0:0,0:___|0,0:|_0,0:_0,0:0,0:0,0:_0,0:_0,0:__0,0:0,0:0,0:\0,0:\0,0:0,0:0,0:0,0:0,0:0,0:/0,0:(_)______0,0:_0,0:_0,0:__0,0:__|0,0:|0,0::::::;:::::
%t 0,0:\___0,0:\0,0:/0,0:_0,0:\0,0:__|0,0:|0,0:|0,0:|0,0:'_0,0:\0,0:0,0:0,0:\0,0:\0,0:/\0,0:/0,0:/|0,0:|_0,0:0,0:/0,0:_`0,0:|0,0:'__/0,0:_`0,0:|0,0::::::::;:::
%t 0,0:0,0:___)0,0:|0,0:0,0:__/0,0:|_|0,0:|_|0,0:|0,0:|_)0,0:|0,0:0,0:0,0:\0,0:V0,0:0,0:V0,0:/0,0:|0,0:|/0,0:/0,0:(_|0,0:|0,0:|0,0:|0,0:(_|0,0:|0,0:::::::;::::
%t 0,0:|____/0,0:\___|\__|\__,_|0,0:.__/0,0:0,0:0,0:0,0:0,0:\_/\_/0,0:0,0:|_/___\__,_|_|0,0:0,0:\__,_|0,0::::::;:::::
%t 0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:|_|0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:0,0:::::::;::::
%t Before you proceed please read the full manual of this Wrapper.
%t Understanding how this wrapper works will result to its better
%t configuration and functionality. If you are newbie please enter
%t every value this wizard have as default. CHANGE SOMETHING ONLY
%t if you know what it is doing.
%t There will be a description for every variable wizard ask you to
%t define.
%h
%b
%t Do you wish to continue ? [Y/n]
editbox @_TMDb_CommandLine Y
set %_tmdb_wizard_step 2
}
elseif ($1 == 3) {
%b
%h
%t Allright Lets Get Started. Care what you choose.
%h
%b
%n 0 0 Wrapper Main Configuration0,0 $str(.,13) $+ 1 $p.bar($1 $+ /32,4|,0.)
%b
%h
%t &_tmdb_api_key (Required)
%n 4 0 This variable holds your UNIQUE API Key. You must define your
%n 4 0 api key in order to proceed and in order to make queries to the
%n 4 0 api server. If you don't have an api key you can request one.
%n 4 0 Please visit: http://themoviedb.org/ to get an api key.
%h
%n 4 0 If you feel uncomfortable to enter like this your api key
%n 4 0 you can type in the editbox exactly this: [pwd]
%h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 3
}
elseif ($1 == 4) {
%b
%n 0 0 Wrapper Main Configuration0,0 $str(.,13) $+ 1 $p.bar($1 $+ /32,4|,0.)
%b
%h
%t &_tmdb_api_version (Required) (Default: 3)
%n 4 0 This variable holds API Server's Protocol Version. Its highly
%n 4 0 recommanded to leave this to its default value. This Wrapper
%n 4 0 Does not support any previous version, but it is able to support
%n 4 0 future versions.
%h
%n 4 0 This variable holds float or integer numbers
%n 4 0 Default: 3
%h | %h | %h | %h | %h
%b
%t Please Enter your Input:
.timer -ms 1 100 set %_tmdb_wizard_step 4
editbox @_TMDb_CommandLine 3
}
elseif ($1 == 5) {
%h
%t &_tmdb_alert (Required) (Default: abc)
%n 4 0 This variable holds the Alert Message level of this wrapper.
%n 4 0 Alerts are separated in 3 categories:
%n 5 0 * Successes: (c) Actions Wrapper took and succeded.
%n 5 0 * Warnings: (b) Actions Wrapper took and faced dificulties, still
%n 7 0 operated normal.
%n 5 0 * Errors: (a) Actions Wrapper took and faced dificulties and halted
%n 7 0 its operation.
%n 4 0 Examples:
%n 5 1 * (Success) - $+ $color(info) * /tmdb: Cache has been cleared
%n 5 1 * (Warning) - $+ $color(info) * /tmdb: SSL Failed to Load. Proceeding with
%n 28 1 $+ $color(info) $+ No-Secure connection.
%n 5 4 * (Error)0,0.. - $+ $color(info) * /tmdb: Socket in use - You are using this command
%n 28 1 $+ $color(info) $+ extremely fast.
%n 4 0 [Error: a][Warning: b][Success: c]
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 5
editbox @_TMDb_CommandLine abc
}
elseif ($1 == 6) {
%b | %n 0 0 Connection Configuration0,0 $str(.,15) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_isid_socket (Required)
%n 4 0 This variable defines if Wrapper should use mIRC Sockets
%n 4 0 or VBScript sockets in order to get the data. With mIRC Sockets
%n 4 0 you have a non-direct result though it is more handled. With VBscript
%n 4 0 sockets to store the json files, you have the ability with the
%n 4 0 identifier to take the file that downloaded instantly as a return value
%n 4 0 from identifier. Though VBScript Sockets, are not handled very well.
%n 4 0 Some bugs may appear during its procedure. Though if you want to test
%n 4 0 it and give us your feedback you can use it. (Default: vbsocks)
%h
%n 4 0 mIRC Sockets: mircsocks
%n 4 0 VBScript Sockets: vbsocks
%h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 6
set %_tmdb_wizard_more _tmdb_isid_socket
editbox @_TMDb_CommandLine vbsocks
}
elseif ($1 == 7) {
%b | %h | %b | %n 0 0 Connection Configuration0,0 $str(.,15) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_ssl (Required)
%n 4 0 This variable defines if by default establish secure connections
%n 4 0 to the API Server. (Default: 0)
%h
%n 4 0 Use SSL By Default: 1
%n 4 0 Do not use SSL By Default: 0
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 7
editbox @_TMDb_CommandLine 0
}
elseif ($1 == 8) {
%b | %n 0 0 Connection Configuration0,0 $str(.,15) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_ssl_fail (Required)
%n 4 0 This variable defines if by default when ssl fails should wrapper
%n 4 0 stop operation or not. (Default: 0)
%h
%n 4 0 Halt Operation when SSL Fails: 1
%n 4 0 Proceed with Non-Secure connecton when SSL Fails: 0
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 8
set %_tmdb_wizard_more _tmdb_ssl_fail
editbox @_TMDb_CommandLine 0
}
elseif ($1 == 9) {
%b | %h | %b | %n 0 0 Data Processor Configuration0,0 $str(.,11) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_clear_process (Required)
%n 4 0 This variable defines the time in ms that the jsons marked for process
%n 4 0 and moved to folder tmdb/process will be erased. (Default: 5000)
%h | %h | %h | %h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 9
set %_tmdb_wizard_more _tmdb_clear_process
editbox @_TMDb_CommandLine 5000
}
elseif ($1 == 10) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache (Required)
%n 4 0 This variable defines if wrapper must keep cache and when to display
%n 5 0 results directly from cache. When to keep data to cache and when to
%n 5 0 make cache work only with custom switch. (Default: 2)
%h
%n 4 0 Do not use cache: (0)
%n 4 0 Always search for cache, and when is not present cache available
%n 5 0 content on cache. Cache wont work with Searches only with static
%n 5 0 results: (1)
%n 4 0 Use cache only with switch -d.: (2)
%h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 10
set %_tmdb_wizard_more _tmdb_cache
editbox @_TMDb_CommandLine 2
}
elseif ($1 == 11) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache_images (Required)
%n 4 0 This variable defines if wrapper must cache/save images to local
%n 4 0 database. This works only when &_tmdb_cache > 0 (Default: 1)
%h
%n 4 0 Do not cache images: (0)
%n 4 0 Cache Images: (1)
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 11
set %_tmdb_wizard_more _tmdb_cache_images
editbox @_TMDb_CommandLine 1
}
elseif ($1 == 12) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache_movie (Required)
%n 4 0 This variable defines if wrapper must cache/save movies to local
%n 4 0 database. This works only when &_tmdb_cache > 0 (Default: 1)
%h
%n 4 0 Do not cache movies: (0)
%n 4 0 Cache movies: (1)
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 12
set %_tmdb_wizard_more _tmdb_cache_movie
editbox @_TMDb_CommandLine 1
}
elseif ($1 == 13) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache_person (Required)
%n 4 0 This variable defines if wrapper must cache/save actors to local
%n 4 0 database. This works only when &_tmdb_cache > 0 (Default: 1)
%h
%n 4 0 Do not cache actors: (0)
%n 4 0 Cache actors: (1)
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 13
set %_tmdb_wizard_more _tmdb_cache_person
editbox @_TMDb_CommandLine 1
}
elseif ($1 == 14) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache_collection (Required)
%n 4 0 This variable defines if wrapper must cache/save collections to
%n 4 0 local database. This works only when &_tmdb_cache > 0 (Default: 1)
%h
%n 4 0 Do not cache collections: (0)
%n 4 0 Cache collections: (1)
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 14
set %_tmdb_wizard_more _tmdb_cache_collection
editbox @_TMDb_CommandLine 1
}
elseif ($1 == 15) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache_genre (Required)
%n 4 0 This variable defines if wrapper must cache/save genre list to
%n 4 0 local database. This works only when &_tmdb_cache > 0 (Default: 1)
%h
%n 4 0 Do not cache genre list: (0)
%n 4 0 Cache genre list: (1)
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 15
set %_tmdb_wizard_more _tmdb_cache_genre
editbox @_TMDb_CommandLine 1
}
elseif ($1 == 16) {
%b | %h | %b | %t Cache Configuration0,0 $str(.,20) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cache_configuration (Required)
%n 4 0 This variable defines if wrapper must cache/save api configuration
%n 4 0 to local database. This works only when &_tmdb_cache>0 (Default: 1)
%h
%n 4 0 Do not cache api configuration: (0)
%n 4 0 Cache api configuration: (1)
%h | %h | %h | %h | %h | %h | %h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 16
set %_tmdb_wizard_more _tmdb_cache_configuration
editbox @_TMDb_CommandLine 1
}
elseif ($1 == 17) {
%b | %h | %b | %t Search Configuration0,0 $str(.,19) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_search_allpages (Required)
%n 4 0 If Search contains more than 1 page, and less or equal than 20 display
%n 4 -1 them all at once. *HIGHLY NOT RECOMMANDED!*. Some instability has
%n 4 0 been noticed, while last socket loads faster than previous ones and
%n 4 0 process of the data is getting interupted and some hash tables are
%n 4 0 not getting freed, as a result a lot of memory allocation with no
%n 4 0 reason. YOU are able to do this with your simple callback functions
%n 4 0 until this function get fixed and rebuilded in a way to prevent this
%n 4 0 data loss. (Default: 0)
%h
%n 4 0 Do not contain all pages on search: (0)
%n 4 0 Contain all pages on search: (1)
%h
%b
%t Please Enter your Input:
set %_tmdb_wizard_step 17
set %_tmdb_wizard_more _tmdb_search_allpages
editbox @_TMDb_CommandLine 0
}
elseif ($1 == 18) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t Callback is a very important feature of this wrapper. Callback allows you
%t to take advantage of this wrapper, to process the data of the api, to make
%t new combined requests to api. To post data to the api, to edit your account
%t information and much more.
%h
%t This section needs extreme attention because everything you choose will
%t affect Wrappers behaviour.
%h
%t There's a detailed explanation of how this feature works on the manual.
%t You can find this manual in the first 500 lines of the source code of
%t this wrapper.
%t Even this wizard works with TMDb Wrapper Callback functions. In order to
%t take information and then be able to process it you NEED to use callbacks.
%b
%t Do you wish to continue ? [Y/n]
editbox @_TMDb_CommandLine
set %_tmdb_wizard_step 18
}
elseif ($1 == 19) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t Before you proceed there are some things you have to know.
%h
%t There are 3 Types of Callbacks.
%n 2 0 (1) CallBack header (cbheader):
%n 4 0 This callback is getting executed right before the execute of the
%n 4 0 main callback alias.
%n 2 0 (2) Callback Main (callback):
%n 4 0 This is the callback that all the data of the api are
%n 4 0 getting parsed on this.
%n 2 0 (3) Callback footer (cbfooter):
%n 4 0 This callback is getting executed right after the execute of the
%n 4 0 main callback alias.
%h
%b
%t Press "a" to continue.
editbox @_TMDb_CommandLine a
set %_tmdb_wizard_step 19
}
elseif ($1 == 20) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t The required form of a callback alias:
%n 2 0 alias callback @
%n 4 0 if ($isid) @
%n 6 0 if ($prop == chk) @ return $true ^
%n 6 0 ;Some Commands you want.
%n 6 0 ;API's data are getting parsed on !1-
%n 4 0 ^
%n 2 0 ^
%t This is mainly required in order the wrapper to determine
%t whether you are using a valid callback or not, in order
%t to not halt its proceedure if it finds an invalid alias.
%t All aliases must be in this type. Main Header and Footer.
%h
%b
%t Press "a" to continue.
editbox @_TMDb_CommandLine a
set %_tmdb_wizard_step 20
}
elseif ($1 == 21) {
var %_tmdb_wizard_resized 1
window -a +l @_TMDb_CommandLine -1 -1 688 392
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t We have some default functions you may use on the callbacks.
%h
%t First of all. If you use except main callback function one more like
%t cbheader , IT IS REQUIRED to use cbfooter aswell and the opposite.
%t In any case you don't want to use one of them, as the alias
%t you can define the predefined alias: _tmdb_void. As it's name sais,
%t it voids everything pass into it. There's no process there.
%h
%t For each differnet method some different argumenets are getting
%t parsed in the callbacks. You will set here the default arguments
%t for each method, but you are able to define for each query different
%t arguments each time by using the switch -q. You have to read more
%t on the wrapper's manual about this switch and to get a full
%t picture of how the callbacks are working.
%h
%b
%t Press "a" to continue.
editbox @_TMDb_CommandLine a
set %_tmdb_wizard_step 21
}
elseif ($1 == 22) {
var %_tmdb_wizard_resized 1
window -a +l @_TMDb_CommandLine -1 -1 688 519
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_global (Required)
%n 2 0 This is the variable that holds every global arguments will be parsed in
%n 2 0 header,footer callback aliases during the process of a query.
%h
%n 2 3 +socket0,0.....: Holds the last socket name of the result of the query
%n 16 0 we made.
%n 2 3 +timestart0,0..: Holds the Unix Time/Ticks that the query started.
%n 16 0 You will define either ctime/ticks later.
%n 2 3 +timeend0,0....: Holds the Unix Time/Ticks that the query ended.
%n 16 0 You will define either ctime/ticks later.
%n 2 3 +totalpages0,0.: Holds the totalpages [where supported] of the results.
%n 2 3 +query0,0......: Holds the query we made to the api.
%n 2 3 +method0,0.....: Holds the method we used to the api.
%n 2 3 +url0,0........: Holds the final encoded url we queried to get the
%n 16 0 results.
%n 2 3 +cmd0,0........: Holds the EXACT command we pressed in order these
%n 16 0 results to be shown.
%n 2 0 +timeprocess: Holds the Unix Time/Ticks that the process of the data
%n 16 0 finished. You will define either ctime/ticks later.
%h
%t (Default: @socket @timestart @timeend @totalpages @query @method @url @cmd
%n 10 0 +timeprocess +cached)
%h
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_global
editbox @_TMDb_CommandLine @socket @timestart @timeend @totalpages @query @method @url @cmd @timeprocess @cached
set %_tmdb_wizard_step 22
}
elseif ($1 == 23) {
var %_tmdb_wizard_resized 1
window -a +l @_TMDb_CommandLine -1 -1 688 458
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_ms (Required)
%n 2 0 This is the variable that holds every search/movie method arguments
%n 2 0 will be parsed in main callback alias during the process of a query.
%h
%n 2 3 +is_for_adults0,0.: Returns if the movie is nsfw*
%n 2 3 +backdrop_path0,0.: Returns the Backdrop Image Path.
%n 2 3 +id0,0............: Returns the id of the movie (usefull for full movie
%n 19 0 query)
%n 2 0 +original_title: Returns the Original Title of the movie
%n 2 3 +release_date0,0..: Returns the full date that movie released
%n 2 3 +year0,0..........: Returns only the year that movie released
%n 2 3 +poster_path0,0...: Returns the Poster Image Path.
%n 2 3 +popularity0,0....: Returns a float number of how much popular the movie is.
%n 2 3 +title0,0.........: Returns the title of the movie
%n 2 3 +vote_average0,0..: Returns the vote average of the movie
%n 2 3 +vote_count0,0....: Returns the Number of Poeple voted in order vote_average
%n 19 0 to be calculated.
%h
%t (Default: @title @year @id)
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_ms
editbox @_TMDb_CommandLine @title @year @id
set %_tmdb_wizard_step 23
}
elseif ($1 == 24) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_cs (Required)
%n 2 0 This is the variable that holds every search/collection method arguments
%n 2 0 will be parsed in main callback alias during the process of a query.
%h
%n 2 3 +name0,0..........: Returns the name of the collection.
%n 2 3 +backdrop_path0,0.: Returns the Backdrop Image Path.
%n 2 3 +id0,0............: Returns the id of the collection (usefull for full
%n 19 0 collection query)
%n 2 3 +poster_path0,0...: Returns the Poster Image Path.
%h
%t (Default: @name @id)
%h | %h
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_cs
editbox @_TMDb_CommandLine @name @id
set %_tmdb_wizard_step 24
}
elseif ($1 == 25) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_ps (Required)
%n 2 0 This is the variable that holds every search/person method arguments
%n 2 0 will be parsed in main callback alias during the process of a query.
%h
%n 2 3 +name0,0..........: Returns the name of the Person.
%n 2 3 +profile_path0,0..: Returns the Profile Image path.
%n 2 3 +id0,0............: Returns the id of the person (usefull for full
%n 19 0 person query)
%n 2 3 +populatiry0,0....: Returns a float number of how much popular the person
%n 2 3 +is_for_adults0,0.: Returns if the person is nsfw*
%n 19 0 is.
%h
%t (Default: @name @id)
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_ps
editbox @_TMDb_CommandLine @name @id
set %_tmdb_wizard_step 25
}
elseif ($1 == 26) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_os (Required)
%n 2 0 This is the variable that holds every search/company method arguments
%n 2 0 will be parsed in main callback alias during the process of a query.
%h
%n 2 3 +name0,0..........: Returns the name of the company.
%n 2 3 +logo_path0,0.....: Returns the Logo Image path.
%n 2 3 +id0,0............: Returns the id of the company (usefull for full
%n 19 0 company query)
%h
%t (Default: @name @id)
%h | %h | %h
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_os
editbox @_TMDb_CommandLine @name @id
set %_tmdb_wizard_step 26
}
elseif ($1 == 27) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_ks (Required)
%n 2 0 This is the variable that holds every search/keyword method arguments
%n 2 0 will be parsed in main callback alias during the process of a query.
%h
%n 2 3 +name0,0..........: Returns the name of the keyword.
%n 2 3 +id0,0............: Returns the id of the keyword (usefull for full
%n 19 0 keyword query)
%h
%t (Default: @name @id)
%h | %h | %h | %h
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_ks
editbox @_TMDb_CommandLine @name @id
set %_tmdb_wizard_step 27
}
elseif ($1 == 28) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_gl (Required)
%n 2 0 This is the variable that holds every genre/list method arguments
%n 2 0 will be parsed in main callback alias during the process of a query.
%h
%n 2 3 +name0,0..........: Returns the name of the genre list.
%n 2 3 +id0,0............: Returns the id of the genre list (usefull for
%n 19 0 full genre list query)
%h
%t (Default: @name @id)
%h | %h | %h | %h
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_gl
editbox @_TMDb_CommandLine @name @id
set %_tmdb_wizard_step 28
}
elseif ($1 == 29) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_cb_time_format (Required)
%n 2 0 This is the variable that holds the begin and end time format
%n 2 0 Available Formats: ctime , ticks
%h
%n 2 3 ctime0,0..........: Is the current date and time formated in unix time.
%n 2 3 ticks0,0..........: Is the number of ticks since your operating system
%n 19 0 was first started. used for more accurate calculation
%n 19 0 of process time.
%h
%t (Default: ticks)
%h | %h | %h
%b
%t Please enter your input:
set %_tmdb_wizard_more _tmdb_cb_time_format
editbox @_TMDb_CommandLine ticks
set %_tmdb_wizard_step 29
}
elseif ($1 == 30) {
%b | %h | %b | %t Callback Configuration0,0 $str(.,17) $+ 1 $p.bar($1 $+ /32,4|,0.) | %b | %h
%t &_tmdb_def_cb (Required)
%n 2 0 This is the variable that holds the default callback alias.
%n 2 0 Callback alias is running as identifier and it must be have
%n 2 0 a "chk" property like mentioned in the guide earlier that it
%n 2 0 must return $true . This alias will be executing as an
%n 2 0 identifier with /noop command on default socket "mircsocks"