-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.html
2687 lines (2559 loc) · 210 KB
/
api.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Server API — HappyPanda X 0.13.3#170 documentation</title>
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/language_data.js"></script>
<script src="https://platform.twitter.com/widgets.js"></script>
<script src="_static/script.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Plugin API" href="api_plugin.html" />
<link rel="prev" title="General" href="api_general.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="_static/js/jquery-1.11.0.min.js "></script>
<script type="text/javascript" src="_static/js/jquery-fix.js "></script>
<script type="text/javascript" src="_static/bootstrap-3.3.7/js/bootstrap.min.js "></script>
<script type="text/javascript" src="_static/bootstrap-sphinx.js "></script>
</head><body>
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><span><img src="_static/hpx_logo.svg"></span>
HappyPanda X</a>
<span class="navbar-text navbar-version pull-left"><b>0.13.3#170</b></span>
</div>
<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
<li class="dropdown globaltoc-container">
<a role="button"
id="dLabelGlobalToc"
data-toggle="dropdown"
data-target="#"
href="index.html">Contents <b class="caret"></b></a>
<ul class="dropdown-menu globaltoc"
role="menu"
aria-labelledby="dLabelGlobalToc"><ul>
<li class="toctree-l1"><a class="reference internal" href="install.html">Installing</a></li>
<li class="toctree-l1"><a class="reference internal" href="usage.html">Using HappyPanda X</a></li>
<li class="toctree-l1"><a class="reference internal" href="usage.html#installing-plugins">Installing plugins</a></li>
<li class="toctree-l1"><a class="reference internal" href="usage.html#securing-happypanda-x">Securing HappyPanda X</a></li>
<li class="toctree-l1"><a class="reference internal" href="usage.html#exposing-happypanda-x">Exposing HappyPanda X</a></li>
<li class="toctree-l1"><a class="reference internal" href="translation.html">Translations</a></li>
<li class="toctree-l1"><a class="reference internal" href="settings.html">Settings</a></li>
<li class="toctree-l1"><a class="reference internal" href="switches.html">Command-Line Arguments</a></li>
<li class="toctree-l1"><a class="reference internal" href="faq.html">FAQ</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="env.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="env.html#editing-the-documentation">Editing the documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="client.html">Creating frontends</a></li>
<li class="toctree-l1"><a class="reference internal" href="plugin.html">Plugins</a></li>
<li class="toctree-l1"><a class="reference internal" href="todo.html">TODO</a></li>
</ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="api_general.html">General</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Server API</a></li>
<li class="toctree-l1"><a class="reference internal" href="api_plugin.html">Plugin API</a></li>
</ul>
</ul>
</li>
<li>
<a href="api_general.html" title="Previous Chapter: General"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« General</span>
</a>
</li>
<li>
<a href="api_plugin.html" title="Next Chapter: Plugin API"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Plugin API »</span>
</a>
</li>
</ul>
<form class="navbar-form navbar-right" action="search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</div>
<ul class="quick-links">
<li>
<strong>Quick links</strong>
</li>
<li class="quick-link">
<a class="github-button" href="https://github.com/twiddli" aria-label="Follow @twiddli on GitHub">Follow @twiddli</a>
</li>
<li class="quick-link">
<a class="github-button" href="https://github.com/happypandax/happypandax/issues" data-icon="octicon-issue-opened" data-show-count="true" aria-label="Issue happypandax/happypandax on GitHub">Issue</a>
</li>
<li class="divider">·</li>
<li class="quick-link">
<a class="github-button" href="https://github.com/happypandax/happypandax" data-icon="octicon-star" data-show-count="true" aria-label="Star happypandax/happypandax on GitHub">Star</a>
</li>
<li class="quick-link">
<a class="github-button" href="https://github.com/happypandax/happypandax/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork happypandax/happypandax on GitHub">Fork</a>
</li>
<li class="divider">·</li>
<li class="quick-link">
<a href="https://twitter.com/twiddly_"
class="twitter-follow-button" data-width="145px"
data-link-color="#0069D6" data-show-count="false">
Follow
@twiddly_
</a>
</li>
<li class="quick-link">
<a href="https://twitter.com/share" class="twitter-share-button"
data-url="" data-count="horizontal"
data-via="twbootstrap"
data-related="twiddly_:Creator of HappyPanda X">Tweet</a>
</li>
</ul>
<div class="container">
<div class="row">
<div class="col-md-3">
<div id="sidebar" class="bs-sidenav" role="complementary"><ul>
<li><a class="reference internal" href="#">Server API</a><ul>
<li><a class="reference internal" href="#summary">Summary</a></li>
<li><a class="reference internal" href="#module-happypanda.interface.meta">Functions</a><ul>
<li><a class="reference internal" href="#meta">Meta</a></li>
<li><a class="reference internal" href="#ui">UI</a></li>
<li><a class="reference internal" href="#events">Events</a></li>
<li><a class="reference internal" href="#item">Item</a></li>
<li><a class="reference internal" href="#gallery">Gallery</a></li>
<li><a class="reference internal" href="#tags">Tags</a></li>
<li><a class="reference internal" href="#database">Database</a></li>
<li><a class="reference internal" href="#plugin">Plugin</a></li>
<li><a class="reference internal" href="#configuration">Configuration</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="col-md-9 content">
<div class="section" id="server-api">
<h1>Server API<a class="headerlink" href="#server-api" title="Permalink to this headline">¶</a></h1>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>Please know that the API is not stable at this time. API changes, additions and removals are
only documented in the release changelogs, so make sure to read them. Things should stabilize once
HPX enters beta status.</p>
</div>
<div class="section" id="summary">
<h2>Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
<p class="rubric">Meta</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.add_items_to_metadata_queue" title="happypanda.interface.meta.add_items_to_metadata_queue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_items_to_metadata_queue</span></code></a>([items_kind, …])</p></td>
<td><p>Add items to the metadata queue</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.add_urls_to_download_queue" title="happypanda.interface.meta.add_urls_to_download_queue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_urls_to_download_queue</span></code></a>([urls, …])</p></td>
<td><p>Add a list of urls to the download queue</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.check_update" title="happypanda.interface.meta.check_update"><code class="xref py py-obj docutils literal notranslate"><span class="pre">check_update</span></code></a>([push])</p></td>
<td><p>Check for new release</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.clear_queue" title="happypanda.interface.meta.clear_queue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">clear_queue</span></code></a>([queue_type])</p></td>
<td><p>Clear a queue</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_changelog" title="happypanda.interface.meta.get_changelog"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_changelog</span></code></a>()</p></td>
<td><p>Get the changelog in markdown formatted text The changelog returned is for the current release or a new update</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_command_progress" title="happypanda.interface.meta.get_command_progress"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_command_progress</span></code></a>([command_ids])</p></td>
<td><p>Get progress of command operation</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_command_state" title="happypanda.interface.meta.get_command_state"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_command_state</span></code></a>(command_ids)</p></td>
<td><p>Get state of command</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_command_value" title="happypanda.interface.meta.get_command_value"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_command_value</span></code></a>(command_ids[, raise_error])</p></td>
<td><p>Get the returned command value</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_download_info" title="happypanda.interface.meta.get_download_info"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_download_info</span></code></a>()</p></td>
<td><p>Get a list of download handlers</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_locales" title="happypanda.interface.meta.get_locales"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_locales</span></code></a>()</p></td>
<td><p>Retrieve available translation locales</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_log" title="happypanda.interface.meta.get_log"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_log</span></code></a>([log_type])</p></td>
<td><p>Get log</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_login_info" title="happypanda.interface.meta.get_login_info"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_login_info</span></code></a>([identifier])</p></td>
<td><p>Get a list of logins</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_metadata_info" title="happypanda.interface.meta.get_metadata_info"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_metadata_info</span></code></a>()</p></td>
<td><p>Get a list of metadata handlers</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_notifications" title="happypanda.interface.meta.get_notifications"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_notifications</span></code></a>()</p></td>
<td><p>Pull unread notifications</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_properties" title="happypanda.interface.meta.get_properties"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_properties</span></code></a>()</p></td>
<td><p>Get various server properties</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_queue_items" title="happypanda.interface.meta.get_queue_items"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_queue_items</span></code></a>([limit, queue_type])</p></td>
<td><p>Get current items in a queue</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_queue_state" title="happypanda.interface.meta.get_queue_state"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_queue_state</span></code></a>([queue_type, include_finished])</p></td>
<td><p>Get current state of a queue</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.get_version" title="happypanda.interface.meta.get_version"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_version</span></code></a>()</p></td>
<td><p>Get version of components: ‘core’, ‘db’ and ‘torrent’</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.mark_notification_read" title="happypanda.interface.meta.mark_notification_read"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mark_notification_read</span></code></a>(ids)</p></td>
<td><p>Mark and unread notification as read</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.reindex" title="happypanda.interface.meta.reindex"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reindex</span></code></a>([limit])</p></td>
<td><p>Reindex datebase items</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.remove_item_from_queue" title="happypanda.interface.meta.remove_item_from_queue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_item_from_queue</span></code></a>([item_id, item_type, …])</p></td>
<td><p>Add an item to a queue</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.restart_application" title="happypanda.interface.meta.restart_application"><code class="xref py py-obj docutils literal notranslate"><span class="pre">restart_application</span></code></a>([delay])</p></td>
<td><p>Restart the application</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.shutdown_application" title="happypanda.interface.meta.shutdown_application"><code class="xref py py-obj docutils literal notranslate"><span class="pre">shutdown_application</span></code></a>([delay])</p></td>
<td><p>Shutdown the application</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.start_command" title="happypanda.interface.meta.start_command"><code class="xref py py-obj docutils literal notranslate"><span class="pre">start_command</span></code></a>(command_ids)</p></td>
<td><p>Start running a command</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.start_queue" title="happypanda.interface.meta.start_queue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">start_queue</span></code></a>([queue_type])</p></td>
<td><p>Start a queue</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.stop_command" title="happypanda.interface.meta.stop_command"><code class="xref py py-obj docutils literal notranslate"><span class="pre">stop_command</span></code></a>(command_ids)</p></td>
<td><p>Stop command from running</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.stop_queue" title="happypanda.interface.meta.stop_queue"><code class="xref py py-obj docutils literal notranslate"><span class="pre">stop_queue</span></code></a>([queue_type])</p></td>
<td><p>Stop a queue</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.submit_login" title="happypanda.interface.meta.submit_login"><code class="xref py py-obj docutils literal notranslate"><span class="pre">submit_login</span></code></a>(identifier, credentials[, options])</p></td>
<td><p>Submit login credentials</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.meta.sweep_trash" title="happypanda.interface.meta.sweep_trash"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sweep_trash</span></code></a>([options, force])</p></td>
<td><p>Sweep trashed items</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.meta.update_application" title="happypanda.interface.meta.update_application"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_application</span></code></a>([download_url, restart])</p></td>
<td><p>Update the application with a new release.</p></td>
</tr>
</tbody>
</table>
<p class="rubric">UI</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.ui.get_sort_indexes" title="happypanda.interface.ui.get_sort_indexes"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_sort_indexes</span></code></a>([item_type, translate, locale])</p></td>
<td><p>Get a list of available sort item indexes and names</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.ui.get_translations" title="happypanda.interface.ui.get_translations"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_translations</span></code></a>([locale])</p></td>
<td><p>Get all translations for given locale</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.ui.get_view_count" title="happypanda.interface.ui.get_view_count"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_view_count</span></code></a>([item_type, item_id, …])</p></td>
<td><p>Get count of items in view</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.ui.library_view" title="happypanda.interface.ui.library_view"><code class="xref py py-obj docutils literal notranslate"><span class="pre">library_view</span></code></a>([item_type, item_id, …])</p></td>
<td><p>Fetch items from the database.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.ui.submit_temporary_view" title="happypanda.interface.ui.submit_temporary_view"><code class="xref py py-obj docutils literal notranslate"><span class="pre">submit_temporary_view</span></code></a>([view_type, view_id])</p></td>
<td><p>not ready yet…</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.ui.temporary_view" title="happypanda.interface.ui.temporary_view"><code class="xref py py-obj docutils literal notranslate"><span class="pre">temporary_view</span></code></a>([view_type, view_id, limit, …])</p></td>
<td><p>not ready yet…</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.ui.translate" title="happypanda.interface.ui.translate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">translate</span></code></a>(t_id[, locale, default, …])</p></td>
<td><p>Get a translation by translation id.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.ui.update_metatags_for_view" title="happypanda.interface.ui.update_metatags_for_view"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_metatags_for_view</span></code></a>([item_type, …])</p></td>
<td><p>Update metatags for items in view</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Events</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.events.gallery_read_event" title="happypanda.interface.events.gallery_read_event"><code class="xref py py-obj docutils literal notranslate"><span class="pre">gallery_read_event</span></code></a>([item_id, …])</p></td>
<td><p>An event for when a gallery has been read</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.events.page_read_event" title="happypanda.interface.events.page_read_event"><code class="xref py py-obj docutils literal notranslate"><span class="pre">page_read_event</span></code></a>([item_id])</p></td>
<td><p>An event for when a page has been read</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Item</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.add_to_filter" title="happypanda.interface.gallery.add_to_filter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_to_filter</span></code></a>([gallery_id, item_id, item])</p></td>
<td><p>Add a gallery to a filter</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.add_to_grouping" title="happypanda.interface.gallery.add_to_grouping"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_to_grouping</span></code></a>([gallery_id, item_id, item])</p></td>
<td><p>Add a gallery to a grouping</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.gallery_exists" title="happypanda.interface.gallery.gallery_exists"><code class="xref py py-obj docutils literal notranslate"><span class="pre">gallery_exists</span></code></a>([url, name])</p></td>
<td><p>Check if a gallery exists in the database</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.get_last_read_page" title="happypanda.interface.gallery.get_last_read_page"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_last_read_page</span></code></a>([item_id])</p></td>
<td><p>Get the last page that was read for given gallery.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.get_page" title="happypanda.interface.gallery.get_page"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_page</span></code></a>([page_id, gallery_id, number, prev])</p></td>
<td><p>Get next/prev page by either gallery or page id</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.get_similar" title="happypanda.interface.gallery.get_similar"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_similar</span></code></a>([item_type, item_id, limit])</p></td>
<td><p>Get similar items</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.load_gallery_from_path" title="happypanda.interface.gallery.load_gallery_from_path"><code class="xref py py-obj docutils literal notranslate"><span class="pre">load_gallery_from_path</span></code></a>([path])</p></td>
<td><p>Load gallery data from a path</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.open_gallery" title="happypanda.interface.gallery.open_gallery"><code class="xref py py-obj docutils literal notranslate"><span class="pre">open_gallery</span></code></a>([item_id, item_type, viewer_args])</p></td>
<td><p>Open a gallery or page in an external viewer</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.remove_from_collection" title="happypanda.interface.gallery.remove_from_collection"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_from_collection</span></code></a>([gallery_id, item_id])</p></td>
<td><p>Remove a gallery from a collection</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.remove_from_filter" title="happypanda.interface.gallery.remove_from_filter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_from_filter</span></code></a>([gallery_id, item_id])</p></td>
<td><p>Remove a gallery from a filter</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.remove_from_grouping" title="happypanda.interface.gallery.remove_from_grouping"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_from_grouping</span></code></a>([gallery_id, item_id])</p></td>
<td><p>Remove a gallery from a grouping</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.scan_galleries" title="happypanda.interface.gallery.scan_galleries"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scan_galleries</span></code></a>(path[, scan_options, limit, …])</p></td>
<td><p>Scan for galleries in the given directory/archive</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.source_exists" title="happypanda.interface.gallery.source_exists"><code class="xref py py-obj docutils literal notranslate"><span class="pre">source_exists</span></code></a>([item_type, item_id, check_all])</p></td>
<td><p>Check if gallery/page source exists on disk</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.sync_with_source" title="happypanda.interface.gallery.sync_with_source"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sync_with_source</span></code></a>([item_id, delete_existing, …])</p></td>
<td><p>Synchronise the gallery source with the database, meaning if the source is a path on the filesystem, it will rescan the source for any possibly new items for given item.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.update_filters" title="happypanda.interface.gallery.update_filters"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_filters</span></code></a>([item_ids])</p></td>
<td><p>Update filters</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Gallery</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.add_to_filter" title="happypanda.interface.gallery.add_to_filter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_to_filter</span></code></a>([gallery_id, item_id, item])</p></td>
<td><p>Add a gallery to a filter</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.add_to_grouping" title="happypanda.interface.gallery.add_to_grouping"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_to_grouping</span></code></a>([gallery_id, item_id, item])</p></td>
<td><p>Add a gallery to a grouping</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.gallery_exists" title="happypanda.interface.gallery.gallery_exists"><code class="xref py py-obj docutils literal notranslate"><span class="pre">gallery_exists</span></code></a>([url, name])</p></td>
<td><p>Check if a gallery exists in the database</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.get_last_read_page" title="happypanda.interface.gallery.get_last_read_page"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_last_read_page</span></code></a>([item_id])</p></td>
<td><p>Get the last page that was read for given gallery.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.get_page" title="happypanda.interface.gallery.get_page"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_page</span></code></a>([page_id, gallery_id, number, prev])</p></td>
<td><p>Get next/prev page by either gallery or page id</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.get_similar" title="happypanda.interface.gallery.get_similar"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_similar</span></code></a>([item_type, item_id, limit])</p></td>
<td><p>Get similar items</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.load_gallery_from_path" title="happypanda.interface.gallery.load_gallery_from_path"><code class="xref py py-obj docutils literal notranslate"><span class="pre">load_gallery_from_path</span></code></a>([path])</p></td>
<td><p>Load gallery data from a path</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.open_gallery" title="happypanda.interface.gallery.open_gallery"><code class="xref py py-obj docutils literal notranslate"><span class="pre">open_gallery</span></code></a>([item_id, item_type, viewer_args])</p></td>
<td><p>Open a gallery or page in an external viewer</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.remove_from_collection" title="happypanda.interface.gallery.remove_from_collection"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_from_collection</span></code></a>([gallery_id, item_id])</p></td>
<td><p>Remove a gallery from a collection</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.remove_from_filter" title="happypanda.interface.gallery.remove_from_filter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_from_filter</span></code></a>([gallery_id, item_id])</p></td>
<td><p>Remove a gallery from a filter</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.remove_from_grouping" title="happypanda.interface.gallery.remove_from_grouping"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_from_grouping</span></code></a>([gallery_id, item_id])</p></td>
<td><p>Remove a gallery from a grouping</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.scan_galleries" title="happypanda.interface.gallery.scan_galleries"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scan_galleries</span></code></a>(path[, scan_options, limit, …])</p></td>
<td><p>Scan for galleries in the given directory/archive</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.source_exists" title="happypanda.interface.gallery.source_exists"><code class="xref py py-obj docutils literal notranslate"><span class="pre">source_exists</span></code></a>([item_type, item_id, check_all])</p></td>
<td><p>Check if gallery/page source exists on disk</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.gallery.sync_with_source" title="happypanda.interface.gallery.sync_with_source"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sync_with_source</span></code></a>([item_id, delete_existing, …])</p></td>
<td><p>Synchronise the gallery source with the database, meaning if the source is a path on the filesystem, it will rescan the source for any possibly new items for given item.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.gallery.update_filters" title="happypanda.interface.gallery.update_filters"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_filters</span></code></a>([item_ids])</p></td>
<td><p>Update filters</p></td>
</tr>
</tbody>
</table>
<p class="rubric">General</p>
<div class="admonition error">
<p class="admonition-title">Error</p>
<p>Unable to execute python code at api.rst:330:</p>
<p>No module named ‘happypanda.interface.general’</p>
</div>
<p class="rubric">Tags</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.tag.get_common_tags" title="happypanda.interface.tag.get_common_tags"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_common_tags</span></code></a>([item_type, item_id, limit])</p></td>
<td><p>Get the most common tags for item</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.tag.get_tags" title="happypanda.interface.tag.get_tags"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_tags</span></code></a>([item_type, item_id, raw])</p></td>
<td><p>Get tags for item</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.tag.get_tags_count" title="happypanda.interface.tag.get_tags_count"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_tags_count</span></code></a>()</p></td>
<td><p>Get count of namespacetags in the database</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.tag.search_tags" title="happypanda.interface.tag.search_tags"><code class="xref py py-obj docutils literal notranslate"><span class="pre">search_tags</span></code></a>([search_query, search_options, …])</p></td>
<td><p>Search for tags</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.tag.update_item_tags" title="happypanda.interface.tag.update_item_tags"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_item_tags</span></code></a>([item_type, item_id, tags])</p></td>
<td><p>Update tags on an item</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Database</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.database.delete_items" title="happypanda.interface.database.delete_items"><code class="xref py py-obj docutils literal notranslate"><span class="pre">delete_items</span></code></a>([item_type, item_ids, options])</p></td>
<td><p>Remove an item from the database <strong>PERMANENTLY</strong></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.database.get_count" title="happypanda.interface.database.get_count"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_count</span></code></a>([item_type])</p></td>
<td><p>Get count of items in the database</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.database.get_image" title="happypanda.interface.database.get_image"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_image</span></code></a>([item_type, item_ids, size, url, uri])</p></td>
<td><p>Get image for item.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.database.get_item" title="happypanda.interface.database.get_item"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_item</span></code></a>([item_type, item_id])</p></td>
<td><p>Get item</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.database.get_items" title="happypanda.interface.database.get_items"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_items</span></code></a>([item_type, limit, offset])</p></td>
<td><p>Get a list of items</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.database.get_related_count" title="happypanda.interface.database.get_related_count"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_related_count</span></code></a>([item_type, item_id, …])</p></td>
<td><p>Get count of items related to given item</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.database.get_related_items" title="happypanda.interface.database.get_related_items"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_related_items</span></code></a>([item_type, item_id, …])</p></td>
<td><p>Get item related to given item and count</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.database.new_item" title="happypanda.interface.database.new_item"><code class="xref py py-obj docutils literal notranslate"><span class="pre">new_item</span></code></a>([item_type, item, options])</p></td>
<td><p>Create a new item and add it to the database</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.database.search_items" title="happypanda.interface.database.search_items"><code class="xref py py-obj docutils literal notranslate"><span class="pre">search_items</span></code></a>([item_type, search_query, …])</p></td>
<td><p>Search for items</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.database.update_item" title="happypanda.interface.database.update_item"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_item</span></code></a>([item_type, item, options])</p></td>
<td><p>Update an existing item</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.database.update_metatags" title="happypanda.interface.database.update_metatags"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_metatags</span></code></a>([item_type, item_id, …])</p></td>
<td><p>Update metatags for an item</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Plugin</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.plugin.disable_plugin" title="happypanda.interface.plugin.disable_plugin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">disable_plugin</span></code></a>([plugin_id])</p></td>
<td><p>Disable a plugin</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.plugin.get_plugin" title="happypanda.interface.plugin.get_plugin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_plugin</span></code></a>([plugin_id])</p></td>
<td><p>Get information for a specific plugin</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.plugin.get_plugin_config" title="happypanda.interface.plugin.get_plugin_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_plugin_config</span></code></a>([plugin_id])</p></td>
<td><p>Get configuration for a specific plugin</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.plugin.install_plugin" title="happypanda.interface.plugin.install_plugin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">install_plugin</span></code></a>([plugin_id])</p></td>
<td><p>Install a plugin</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.plugin.list_plugins" title="happypanda.interface.plugin.list_plugins"><code class="xref py py-obj docutils literal notranslate"><span class="pre">list_plugins</span></code></a>([state])</p></td>
<td><p>Get a list plugins</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.plugin.remove_plugin" title="happypanda.interface.plugin.remove_plugin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">remove_plugin</span></code></a>([plugin_id])</p></td>
<td><p>Remove a plugin</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.plugin.send_plugin_message" title="happypanda.interface.plugin.send_plugin_message"><code class="xref py py-obj docutils literal notranslate"><span class="pre">send_plugin_message</span></code></a>([plugin_id, msg])</p></td>
<td><p>Send a message to a plugin for a specific plugin</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.plugin.set_plugin_config" title="happypanda.interface.plugin.set_plugin_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">set_plugin_config</span></code></a>([plugin_id, cfg])</p></td>
<td><p>Set/update configuration for a specific plugin</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.plugin.update_plugin" title="happypanda.interface.plugin.update_plugin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">update_plugin</span></code></a>([plugin_ids, force, push])</p></td>
<td><p>Check for new release and update the application</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Configuration</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.settings.get_item_config" title="happypanda.interface.settings.get_item_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_item_config</span></code></a>([item_type, item_id, cfg, yaml])</p></td>
<td><p>Get item configuration.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.settings.save_config" title="happypanda.interface.settings.save_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">save_config</span></code></a>()</p></td>
<td><p>Save config to disk</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#happypanda.interface.settings.set_config" title="happypanda.interface.settings.set_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">set_config</span></code></a>(cfg)</p></td>
<td><p>Set/update configuration</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#happypanda.interface.settings.set_item_config" title="happypanda.interface.settings.set_item_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">set_item_config</span></code></a>([item_type, item_id, cfg, yaml])</p></td>
<td><p>Set/update item configuration</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="module-happypanda.interface.meta">
<span id="functions"></span><h2>Functions<a class="headerlink" href="#module-happypanda.interface.meta" title="Permalink to this headline">¶</a></h2>
<div class="section" id="meta">
<h3>Meta<a class="headerlink" href="#meta" title="Permalink to this headline">¶</a></h3>
<dl class="py function">
<dt id="happypanda.interface.meta.add_item_to_queue">
<code class="sig-name descname">add_item_to_queue</code><span class="sig-paren">(</span><em class="sig-param">item_id=0</em>, <em class="sig-param">item_type=<ItemType.Gallery: 1></em>, <em class="sig-param">options={}</em>, <em class="sig-param">queue_type=<QueueType.Metadata: 1></em>, <em class="sig-param">priority=<Priority.Medium: 2></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.add_item_to_queue" title="Permalink to this definition">¶</a></dt>
<dd><p>Add an item to a queue</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>item_id</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>) – id of item</p></li>
<li><p><strong>item_type</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.ItemType" title="happypanda.interface.enums.ItemType"><code class="xref py py-class docutils literal notranslate"><span class="pre">ItemType</span></code></a>) – type of item to get, note that each queue type has its own list of item types it supports</p></li>
<li><p><strong>options</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code>) – queue options</p></li>
<li><p><strong>queue_type</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.QueueType" title="happypanda.interface.enums.QueueType"><code class="xref py py-class docutils literal notranslate"><span class="pre">QueueType</span></code></a>) – type of queue</p></li>
<li><p><strong>priority</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.Priority" title="happypanda.interface.enums.Priority"><code class="xref py py-class docutils literal notranslate"><span class="pre">Priority</span></code></a>) – priority of item in queue</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>bool indicating whether the addition was successful</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.add_items_to_metadata_queue">
<code class="sig-name descname">add_items_to_metadata_queue</code><span class="sig-paren">(</span><em class="sig-param">items_kind=<ItemsKind.tags_missing_items: 4></em>, <em class="sig-param">item_type=<ItemType.Gallery: 1></em>, <em class="sig-param">options={}</em>, <em class="sig-param">priority=<Priority.Medium: 2></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.add_items_to_metadata_queue" title="Permalink to this definition">¶</a></dt>
<dd><p>Add items to the metadata queue</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>items_kind</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.ItemsKind" title="happypanda.interface.enums.ItemsKind"><code class="xref py py-class docutils literal notranslate"><span class="pre">ItemsKind</span></code></a>) – kind of items to add</p></li>
<li><p><strong>item_type</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.ItemType" title="happypanda.interface.enums.ItemType"><code class="xref py py-class docutils literal notranslate"><span class="pre">ItemType</span></code></a>) – type of items to add</p></li>
<li><p><strong>options</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code>) – queue options</p></li>
<li><p><strong>priority</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.Priority" title="happypanda.interface.enums.Priority"><code class="xref py py-class docutils literal notranslate"><span class="pre">Priority</span></code></a>) – priority of item in queue</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>bool indicating whether the addition was succesful</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.add_urls_to_download_queue">
<code class="sig-name descname">add_urls_to_download_queue</code><span class="sig-paren">(</span><em class="sig-param">urls=[]</em>, <em class="sig-param">identifier=[]</em>, <em class="sig-param">options={}</em>, <em class="sig-param">priority=<Priority.Medium: 2></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.add_urls_to_download_queue" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a list of urls to the download queue</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>urls</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code>) – list of urls</p></li>
<li><p><strong>identifier</strong> – list of specific download handlers to match against</p></li>
<li><p><strong>options</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code>) – download options</p></li>
<li><p><strong>priority</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.Priority" title="happypanda.interface.enums.Priority"><code class="xref py py-class docutils literal notranslate"><span class="pre">Priority</span></code></a>) – priority of items in queue</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>bool indicating whether the addition was successful</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.check_update">
<code class="sig-name descname">check_update</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">push</span><span class="o">=</span><span class="default_value">False</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.check_update" title="Permalink to this definition">¶</a></dt>
<dd><p>Check for new release</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>push</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">bool</span></code>) – whether to push out notifications if an update is found</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
'url' : str,
'tag' : str
'changes' : str,
}
</pre></div>
</div>
<p>or <code class="docutils literal notranslate"><span class="pre">null</span></code></p>
</p>
</dd>
</dl>
<p><strong>Async function</strong> – This function returns a <code class="docutils literal notranslate"><span class="pre">command</span> <span class="pre">id</span></code>.
Retrieve the value of the function with <code class="xref py py-meth docutils literal notranslate"><span class="pre">get_command_value()</span></code>.
See <a class="reference internal" href="api_general.html#asynchronous-commands"><span class="std std-ref">Asynchronous Commands</span></a> for more information.</p>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="#happypanda.interface.meta.get_changelog" title="happypanda.interface.meta.get_changelog"><code class="xref py py-func docutils literal notranslate"><span class="pre">get_changelog()</span></code></a> – when a new update is found, its changelog is immediately available here
<a class="reference internal" href="#happypanda.interface.meta.update_application" title="happypanda.interface.meta.update_application"><code class="xref py py-func docutils literal notranslate"><span class="pre">update_application()</span></code></a></p>
</div>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.clear_queue">
<code class="sig-name descname">clear_queue</code><span class="sig-paren">(</span><em class="sig-param">queue_type=<QueueType.Metadata: 1></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.clear_queue" title="Permalink to this definition">¶</a></dt>
<dd><p>Clear a queue</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>queue_type</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.QueueType" title="happypanda.interface.enums.QueueType"><code class="xref py py-class docutils literal notranslate"><span class="pre">QueueType</span></code></a>) – type of queue</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>bool indicating whether the action was successful</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_changelog">
<code class="sig-name descname">get_changelog</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_changelog" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the changelog in markdown formatted text
The changelog returned is for the current release or a new update</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
'version': str,
'changes': str
}
</pre></div>
</div>
</p>
</dd>
</dl>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="#happypanda.interface.meta.check_update" title="happypanda.interface.meta.check_update"><code class="xref py py-func docutils literal notranslate"><span class="pre">check_update()</span></code></a></p>
</div>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_command_progress">
<code class="sig-name descname">get_command_progress</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">command_ids</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_command_progress" title="Permalink to this definition">¶</a></dt>
<dd><p>Get progress of command operation</p>
<p>If the command did not set a maximum value, the returned percent will be set to less than <code class="docutils literal notranslate"><span class="pre">0.0</span></code> for infinity.</p>
<p>This should be polled every few seconds to get updated values.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>command_ids</strong> (<code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code>]) – list of command ids or None to retrieve progress of all occurring commands</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
command_id : { 'title': str,
'value': float,
'subtitle': str,
'subtype': :py:class:`.ProgressType`,
'max': float,
'percent': float,
'type': :py:class:`.ProgressType`,
'text': str,
'timestamp':int,
'state': :py:class:`.CommandState`
}
}
</pre></div>
</div>
<p>or</p>
<div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
command_id : None
}
</pre></div>
</div>
<p>or, if <code class="docutils literal notranslate"><span class="pre">command_ids</span></code> is <code class="docutils literal notranslate"><span class="pre">None</span></code>:</p>
<div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>[
{ 'title': str,
'value': float,
'subtitle': str,
'subtype': :py:class:`.ProgressType`,
'max': float,
'percent': float,
'type': :py:class:`.ProgressType`,
'text': str,
'timestamp':int
},
...
]
</pre></div>
</div>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_command_state">
<code class="sig-name descname">get_command_state</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">command_ids</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_command_state" title="Permalink to this definition">¶</a></dt>
<dd><p>Get state of command</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>command_ids</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code>) – list of command ids</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
command_id : :py:class:`.CommandState`
}
</pre></div>
</div>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_command_value">
<code class="sig-name descname">get_command_value</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">command_ids</span></em>, <em class="sig-param"><span class="n">raise_error</span><span class="o">=</span><span class="default_value">True</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_command_value" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the returned command value</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>command_ids</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code>) – list of command ids</p></li>
<li><p><strong>raise_error</strong> – raise error if command failed or has not finished running</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
command_id : value
}
</pre></div>
</div>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_download_info">
<code class="sig-name descname">get_download_info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_download_info" title="Permalink to this definition">¶</a></dt>
<dd><p>Get a list of download handlers</p>
<p>Args:</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>a list of download handlers sorted by priority</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_locales">
<code class="sig-name descname">get_locales</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_locales" title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieve available translation locales</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
str : {
'locale' : str
'namespaces': [str, ...]
}
}
</pre></div>
</div>
</p>
</dd>
</dl>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="#happypanda.interface.ui.translate" title="happypanda.interface.ui.translate"><code class="xref py py-func docutils literal notranslate"><span class="pre">translate()</span></code></a></p>
</div>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_log">
<code class="sig-name descname">get_log</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">log_type</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_log" title="Permalink to this definition">¶</a></dt>
<dd><p>Get log</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>log_type</strong> (<code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<a class="reference internal" href="api_general.html#happypanda.interface.enums.LogType" title="happypanda.interface.enums.LogType"><code class="xref py py-class docutils literal notranslate"><span class="pre">LogType</span></code></a>]) – type of log to fetch</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><dl class="simple">
<dt>{</dt><dd><p>‘log’: a formatted str of the logs</p>
</dd>
</dl>
<p>}</p>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_login_info">
<code class="sig-name descname">get_login_info</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">identifier</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_login_info" title="Permalink to this definition">¶</a></dt>
<dd><p>Get a list of logins</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>identifier</strong> (<code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code>]) – name of the login identifier, this was set by the plugin</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><dl class="simple">
<dt>{</dt><dd><p>‘identifier’: text
‘name’: text
‘status’: status set by plugin
‘logged_in’: bool
‘user’: current logged in user
‘sites’: list of supported sites set by plugin
‘description’: description set by plugin</p>
</dd>
</dl>
<p>}</p>
</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>a list of logins or if an identifier was provided</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_metadata_info">
<code class="sig-name descname">get_metadata_info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_metadata_info" title="Permalink to this definition">¶</a></dt>
<dd><p>Get a list of metadata handlers</p>
<p>Args:</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>a list of metadata handlers sorted by priority</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_notifications">
<code class="sig-name descname">get_notifications</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_notifications" title="Permalink to this definition">¶</a></dt>
<dd><p>Pull unread notifications</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>a list of notification message objects</p>
</dd>
</dl>
<dl class="simple">
<dt>Remarks:</dt><dd><p>The first call to this function is used to lazily connect the client to the notification system,
and as such will always return an empty list</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_properties">
<code class="sig-name descname">get_properties</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_properties" title="Permalink to this definition">¶</a></dt>
<dd><p>Get various server properties</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>a Properties message object</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_queue_items">
<code class="sig-name descname">get_queue_items</code><span class="sig-paren">(</span><em class="sig-param">limit=100</em>, <em class="sig-param">queue_type=<QueueType.Metadata: 1></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_queue_items" title="Permalink to this definition">¶</a></dt>
<dd><p>Get current items in a queue</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>limit</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>) – limit the amount of items returned</p></li>
<li><p><strong>queue_type</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.QueueType" title="happypanda.interface.enums.QueueType"><code class="xref py py-class docutils literal notranslate"><span class="pre">QueueType</span></code></a>) – type of queue</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>[
]
</pre></div>
</div>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_queue_state">
<code class="sig-name descname">get_queue_state</code><span class="sig-paren">(</span><em class="sig-param">queue_type=<QueueType.Metadata: 1></em>, <em class="sig-param">include_finished=True</em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_queue_state" title="Permalink to this definition">¶</a></dt>
<dd><p>Get current state of a queue</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>queue_type</strong> (<a class="reference internal" href="api_general.html#happypanda.interface.enums.QueueType" title="happypanda.interface.enums.QueueType"><code class="xref py py-class docutils literal notranslate"><span class="pre">QueueType</span></code></a>) – type of queue</p></li>
<li><p><strong>inculde_finished</strong> – include finished tasks</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
}
</pre></div>
</div>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.get_version">
<code class="sig-name descname">get_version</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.get_version" title="Permalink to this definition">¶</a></dt>
<dd><p>Get version of components: ‘core’, ‘db’ and ‘torrent’</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{
'core' : [int, int, int],
'db' : [int, int, int],
'torrent' : [int, int, int],
}
</pre></div>
</div>
</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.mark_notification_read">
<code class="sig-name descname">mark_notification_read</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ids</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.mark_notification_read" title="Permalink to this definition">¶</a></dt>
<dd><p>Mark and unread notification as read</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>ids</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code>) – a list of notification ids</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>status</p>
</dd>
</dl>
</dd></dl>
<dl class="py function">
<dt id="happypanda.interface.meta.reindex">
<code class="sig-name descname">reindex</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">limit</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#happypanda.interface.meta.reindex" title="Permalink to this definition">¶</a></dt>
<dd><p>Reindex datebase items</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>limit</strong> (<code class="xref py py-data docutils literal notranslate"><span class="pre">Optional</span></code>[<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>]) – reindex only last x amount of items</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><div class="highlight-guess notranslate"><div class="highlight"><pre><span></span>{