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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233
|
= deejayd - JSON-RPC Protocol =
Deejayd protocol follows JSON-RPC 1.0 specification available
[http://json-rpc.org/wiki/specification here].
All data between the client and server is encoded in UTF-8.
== Commands Format ==
As written in specification, request is like that :
{{{
`{
"id": "id",
"method": "method_name",
"params": [
"params1",
"params2"
]
}`
}}}
== Response Format ==
As written in specification, response is like that :
{{{
{
"error": null,
"id": "id",
"result": "deejayd_response"
}
}}}
For deejayd, result parameter has always the same syntax :
{{{
`{
"type": answer_type,
"answer": the real answer value
}`
}}}
With response types equals to:
* ack
* list
* dict
* mediaList
* dvdInfo
* fileAndDirList
== Specific Objects ==
=== Mediafilter Objects ===
Mediafilter object has been serialized in a specific way to be passed as
an method argument or receive with an answer. An example is given here.
{{{
`{
"id": "and",
"type": "complex",
"value": [
{
"id": "equals",
"type": "basic",
"value": {
"pattern": "artist_name",
"tag": "artist"
}
},
{
"id": "or",
"type": "complex",
"value": [
{
"id": "contains",
"type": "basic",
"value": {
"pattern": "Rock",
"tag": "genre"
}
},
{
"id": "higher",
"type": "basic",
"value": {
"pattern": "4",
"tag": "Rating"
}
}
]
}
]
}`
}}}
=== Signal Objects ===
Signal is available for TCP connection only.
Signal object has been serialized in a specific way to be send to client.
An example is given here.
{{{
`{
"answer": {
"attrs": {
"attr1": "value1"
},
"name": "signal_name"
},
"type": "signal"
}`
}}}
== Common Available Commands ==
=== `General Commands` ===
==== `status` ====
Return status of deejayd. Given informations are :
* playlist : _int_ id of the current playlist
* playlistlength : _int_ length of the current playlist
* playlisttimelength : _int_ time length of the current playlist
* playlistrepeat : 0 (not activated) or 1 (activated)
* playlistplayorder : inorder | random | onemedia | random-weighted
* webradio : _int_ id of the current webradio list
* webradiolength : _int_ number of recorded webradio
* queue : _int_ id of the current queue
* queuelength : _int_ length of the current queue
* queuetimelength : _int_ time length of the current queue
* queueplayorder : inorder | random
* video : _int_ id of the current video list
* videolength : _int_ length of the current video list
* videotimelength : _int_ time length of the current video list
* videorepeat : 0 (not activated) or 1 (activated)
* videoplayorder : inorder | random | onemedia | random-weighted
* dvd : _int_ id of the current dvd
* dvdlength : _int_ number of tracks on the current dvd
* volume : `[0-100]` current volume value
* state : [play-pause-stop] the current state of the player
* current : _int_:_int_:_str_ current media pos : current media file id :
playing source name
* time : _int_:_int_ position:length of the current media file
* mode : [playlist-webradio-video] the current mode
* audio_updating_db : _int_ show when a audio library update
is in progress
* audio_updating_error : _string_ error message that apppears when the
audio library update has failed
* video_updating_db : _int_ show when a video library update
is in progress
* video_updating_error : _string_ error message that apppears when the
video library update has failed
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['dict']`''
==== `stats` ====
Return statistical informations :
* audio_library_update : UNIX time of the last audio library update
* video_library_update : UNIX time of the last video library update
* videos : number of videos known by the database
* songs : number of songs known by the database
* artists : number of artists in the database
* albums : number of albums in the database
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['dict']`''
==== `setOption` ====
Set player options "name" to "value" for mode "source",
Available options are :
* playorder (inorder, onemedia, random or random-weighted)
* repeat (0 or 1)
Arguments :
* {{{source}}} (Mandatory) : string
* {{{option_name}}} (Mandatory) : string
* {{{option_value}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `ping` ====
Does nothing, just replies with an acknowledgement that the
command was received
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `setRating` ====
Set rating of media file with ids equal to media_id
for library 'type'
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{value}}} (Mandatory) : int
* {{{type}}} (Optional) : string
Expected return value : ''`['ack']`''
==== `setmode` ====
Change the player mode. Possible values are :
* playlist : to manage and listen songs
* video : to manage and wath video file
* dvd : to wath dvd
* webradio : to manage and listen webradios
Arguments :
* {{{mode}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `availablemodes` ====
For each available source, shows if it is activated or not.
The answer consists in :
* playlist : 0 or 1 (actually always 1 because it does not need optionnal
dependencies)
* queue : 0 or 1 (actually always 1 because it does not need optionnal
dependencies)
* webradio : 0 or 1 (needs gst-plugins-gnomevfs to be activated)
* video : 0 or 1 (needs video dependencies, X display and needs to be
activated in configuration)
* dvd : 0 or 1 (media backend has to be able to read dvd)
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['dict']`''
=== `Player Commands` ===
==== `player.setPlayerOption` ====
Set player option for the current media
Possible options are :
* zoom : set zoom (video only), min=-85, max=400
* audio_lang : select audio channel (video only)
* sub_lang : select subtitle channel (video only)
* av_offset : set audio/video offset (video only)
* sub_offset : set subtitle/video offset (video only)
* aspect_ratio : set video aspect ratio (video only)
available value are :
* auto
* 1:1
* 16:9
* 4:3
* 2.11:1 (for DVB)
Arguments :
* {{{option_name}}} (Mandatory) : string
* {{{option_value}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `player.goto` ====
Begin playing at media file with id "id" or toggle play/pause.
Arguments :
* {{{id}}} (Mandatory) : string
* {{{id_type}}} (Optional) : string
* {{{source}}} (Optional) : string
Expected return value : ''`['ack']`''
==== `player.stop` ====
Stop playing.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `player.next` ====
Go to next song or webradio.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `player.current` ====
Return informations on the current song, webradio or video info.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['mediaList']`''
==== `player.playToggle` ====
Toggle play/pause.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `player.setVolume` ====
Set volume to "volume". The volume range is 0-100.
Arguments :
* {{{volume}}} (Mandatory) : int
Expected return value : ''`['ack']`''
==== `player.seek` ====
Seeks to the position "pos" (in seconds) of the current media
set relative argument to true to set new pos in relative way
Arguments :
* {{{pos}}} (Mandatory) : int
* {{{relative}}} (Optional) : bool
Expected return value : ''`['ack']`''
==== `player.previous` ====
Go to previous song or webradio.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
=== `Audio Library Commands` ===
==== `audiolib.search` ====
Search files in library where "type" contains "pattern" content.
Arguments :
* {{{pattern}}} (Mandatory) : string
* {{{type}}} (Mandatory) : string
Expected return value : ''`['mediaList']`''
==== `audiolib.taglist` ====
List all the possible values for a tag according to the optional
filter argument.
Arguments :
* {{{tag}}} (Mandatory) : string
* {{{filter}}} (Optional) : filter
Expected return value : ''`['list']`''
==== `audiolib.update` ====
Update the library.
* 'type'_updating_db : the id of this task.
It appears in the status until the update are completed.
Arguments :
* {{{force}}} (Optional) : bool
Expected return value : ''`['dict']`''
==== `audiolib.getDir` ====
List the files of the directory supplied as argument.
Arguments :
* {{{directory}}} (Optional) : string
Expected return value : ''`['fileAndDirList']`''
=== `Video Library Commands` ===
==== `videolib.search` ====
Search files in library where "type" contains "pattern" content.
Arguments :
* {{{pattern}}} (Mandatory) : string
* {{{type}}} (Mandatory) : string
Expected return value : ''`['mediaList']`''
==== `videolib.update` ====
Update the library.
* 'type'_updating_db : the id of this task.
It appears in the status until the update are completed.
Arguments :
* {{{force}}} (Optional) : bool
Expected return value : ''`['dict']`''
==== `videolib.getDir` ====
List the files of the directory supplied as argument.
Arguments :
* {{{directory}}} (Optional) : string
Expected return value : ''`['fileAndDirList']`''
=== `Playlist Mode Commands` ===
==== `playlist.move` ====
Move songs with id in "ids" to position "pos".
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{pos}}} (Mandatory) : int
Expected return value : ''`['ack']`''
==== `playlist.addPath` ====
Load files or directories passed as arguments ("paths")
at the position "pos" in the current playlist.
Arguments :
* {{{paths}}} (Mandatory) : list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `playlist.shuffle` ====
Shuffle the current playlist.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `playlist.get` ====
Return the content of this mode.
Arguments :
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
==== `playlist.clear` ====
Clear the current playlist.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `playlist.addIds` ====
Load files with id passed as arguments ("ids")
at the position "pos" in the current playlist.
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `playlist.remove` ====
Remove songs with ids passed as argument ("ids"),
from the current playlist
Arguments :
* {{{ids}}} (Mandatory) : int-list
Expected return value : ''`['ack']`''
==== `playlist.loads` ====
Load playlists passed as arguments "name" at the position "pos".
Arguments :
* {{{pl_ids}}} (Mandatory) : int-list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `playlist.save` ====
Save the current playlist to "pls_name" in the database.
* playlist_id : id of the recorded playlist
Arguments :
* {{{pls_name}}} (Mandatory) : string
Expected return value : ''`['dict']`''
=== `Panel Mode Commands` ===
==== `panel.setSort` ====
Sort active medialist in panel mode
Arguments :
* {{{sort}}} (Mandatory) : sort
Expected return value : ''`['ack']`''
==== `panel.get` ====
Return the content of this mode.
Arguments :
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
==== `panel.activeList` ====
Return active list in panel mode
* type : 'playlist' if playlist is choosen as active medialist
'panel' if panel navigation is active
* value : if 'playlist' is selected, return used playlist id
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['dict']`''
==== `panel.tags` ====
Return tag list used in panel mode.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['list']`''
==== `panel.setSearch` ====
Set search filter in panel mode
Arguments :
* {{{tag}}} (Mandatory) : string
* {{{value}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `panel.clearFilter` ====
Clear filters for panel mode
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `panel.setActiveList` ====
Set the active list in panel mode
Arguments :
* {{{type}}} (Mandatory) : string
* {{{value}}} (Optional) : string
Expected return value : ''`['ack']`''
==== `panel.clearSearch` ====
Clear search filter in panel mode
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `panel.removeFilter` ====
Remove a filter for panel mode
Arguments :
* {{{tag}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `panel.clearAll` ====
Clear search filter and panel filters
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `panel.setFilter` ====
Set a filter for panel mode
Arguments :
* {{{tag}}} (Mandatory) : string
* {{{values}}} (Mandatory) : list
Expected return value : ''`['ack']`''
=== `Video Mode Commands` ===
==== `video.sort` ====
Sort active medialist in video mode
Arguments :
* {{{sort}}} (Mandatory) : sort
Expected return value : ''`['ack']`''
==== `video.set` ====
Set content of video mode
Arguments :
* {{{value}}} (Mandatory) : string
* {{{type}}} (Optional) : string
Expected return value : ''`['ack']`''
==== `video.get` ====
Return the content of this mode.
Arguments :
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
=== `Webradio Mode Commands` ===
==== `webradio.add` ====
Add a webradio. Its name is "name" and the url of the webradio is
"url". You can pass a playlist for "url" argument (.pls and .m3u format
are supported).
Arguments :
* {{{name}}} (Mandatory) : string
* {{{url}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `webradio.clear` ====
Remove all recorded webradios.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `webradio.remove` ====
Remove webradios with id in "ids".
Arguments :
* {{{ids}}} (Mandatory) : int-list
Expected return value : ''`['ack']`''
==== `webradio.get` ====
Return the content of this mode.
Arguments :
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
=== `Dvd Mode Commands` ===
==== `dvd.reload` ====
Load the content of the dvd player.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `dvd.get` ====
Get the content of the current dvd.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['dvdInfo']`''
=== `Queue Commands` ===
==== `queue.move` ====
Move songs with id in "ids" to position "pos".
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{pos}}} (Mandatory) : int
Expected return value : ''`['ack']`''
==== `queue.addIds` ====
Load files with id passed as arguments ("ids")
at the position "pos" in the queue.
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `queue.get` ====
Return the content of this mode.
Arguments :
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
==== `queue.clear` ====
Clear the queue.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `queue.addPath` ====
Load files or directories passed as arguments ("paths")
at the position "pos" in the queue.
Arguments :
* {{{paths}}} (Mandatory) : list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `queue.remove` ====
Remove songs with ids passed as argument ("ids"),
from the queue
Arguments :
* {{{ids}}} (Mandatory) : int-list
Expected return value : ''`['ack']`''
==== `queue.loads` ====
Load playlists passed as arguments "name" at the position "pos"
in the queue.
Arguments :
* {{{pl_ids}}} (Mandatory) : int-list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
=== `Queue Commands` ===
==== `queue.move` ====
Move songs with id in "ids" to position "pos".
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{pos}}} (Mandatory) : int
Expected return value : ''`['ack']`''
==== `queue.addIds` ====
Load files with id passed as arguments ("ids")
at the position "pos" in the queue.
Arguments :
* {{{ids}}} (Mandatory) : int-list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `queue.get` ====
Return the content of this mode.
Arguments :
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
==== `queue.clear` ====
Clear the queue.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
==== `queue.addPath` ====
Load files or directories passed as arguments ("paths")
at the position "pos" in the queue.
Arguments :
* {{{paths}}} (Mandatory) : list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
==== `queue.remove` ====
Remove songs with ids passed as argument ("ids"),
from the queue
Arguments :
* {{{ids}}} (Mandatory) : int-list
Expected return value : ''`['ack']`''
==== `queue.loads` ====
Load playlists passed as arguments "name" at the position "pos"
in the queue.
Arguments :
* {{{pl_ids}}} (Mandatory) : int-list
* {{{pos}}} (Optional) : int
Expected return value : ''`['ack']`''
=== `Recorded Playlist Commands` ===
==== `recpls.get` ====
Return the content of a recorded playlist.
Arguments :
* {{{pl_id}}} (Mandatory) : int
* {{{first}}} (Optional) : int
* {{{length}}} (Optional) : int
Expected return value : ''`['mediaList']`''
==== `recpls.create` ====
Create recorded playlist. The answer consist on
* pl_id : id of the created playlist
* name : name of the created playlist
* type : type of the created playlist
Arguments :
* {{{name}}} (Mandatory) : string
* {{{type}}} (Mandatory) : string
Expected return value : ''`['dict']`''
==== `recpls.list` ====
Return the list of recorded playlists.
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['mediaList']`''
==== `recpls.staticAdd` ====
Add songs in a recorded static playlist.
Argument 'type' has to be 'path' (default) or 'id'
Arguments :
* {{{pl_id}}} (Mandatory) : int
* {{{values}}} (Mandatory) : list
* {{{type}}} (Optional) : string
Expected return value : ''`['ack']`''
==== `recpls.magicRemoveFilter` ====
Remove a filter from recorded magic playlist.
Arguments :
* {{{pl_id}}} (Mandatory) : int
* {{{filter}}} (Mandatory) : filter
Expected return value : ''`['ack']`''
==== `recpls.erase` ====
Erase recorded playlists passed as arguments.
Arguments :
* {{{pl_ids}}} (Mandatory) : int-list
Expected return value : ''`['ack']`''
==== `recpls.magicSetProperty` ====
Set a property for a magic playlist.
Arguments :
* {{{pl_id}}} (Mandatory) : int
* {{{key}}} (Mandatory) : string
* {{{value}}} (Mandatory) : string
Expected return value : ''`['ack']`''
==== `recpls.magicGetProperties` ====
Get properties of a magic playlist
* use-or-filter: if equal to 1, use "Or" filter
instead of "And" (0 or 1)
* use-limit: limit or not number of songs in the playlist (0 or 1)
* limit-value: number of songs for this playlist (integer)
* limit-sort-value: when limit is active sort playlist with this tag
* limit-sort-direction: sort direction for limit
(ascending or descending)
Arguments :
* {{{pl_id}}} (Mandatory) : int
Expected return value : ''`['dict']`''
==== `recpls.magicClearFilter` ====
Remove all filter from recorded magic playlist.
Arguments :
* {{{pl_id}}} (Mandatory) : int
Expected return value : ''`['ack']`''
==== `recpls.magicAddFilter` ====
Add a filter in recorded magic playlist.
Arguments :
* {{{pl_id}}} (Mandatory) : int
* {{{filter}}} (Mandatory) : filter
Expected return value : ''`['ack']`''
== Http Specific Commands ==
=== General Commands ===
==== `serverInfo` ====
Return deejayd server informations :
* server_version : deejayd server version
* protocol_version : protocol version
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['dict']`''
=== `Commands specific to webui` ===
==== `web.buildPanel` ====
Build panel list
Arguments :
* {{{updated_tag}}} (Optional) : string
Expected return value : ''`['dict']`''
==== `web.writecover` ====
Record requested cover in the temp directory
Arguments :
* {{{mid}}} (Mandatory) : int
Expected return value : ''`['dict']`''
==== `web.buildSourceRDF` ====
Build rdf file with current medialist of the specified mode
return dict with specific informations (like a description)
Arguments :
* {{{mode}}} (Mandatory) : string
Expected return value : ''`['dict']`''
== TCP Specific Commands ==
=== General Commands ===
==== `close` ====
Close the connection with the server
Arguments :
* ''This command does not accept any argument.''
Expected return value : ''`['ack']`''
=== `Signal subscription commands` ===
==== `signal.setSubscription` ====
Set subscribtion to "signal" signal notifications to "value"
which should be 0 or 1.
Arguments :
* {{{signal}}} (Mandatory) : string
* {{{value}}} (Mandatory) : bool
Expected return value : ''`['ack']`''
|