| 14 | | * Remove and get new Tracks |
|---|
| 15 | | * Change channel |
|---|
| 16 | | * Handle errors |
|---|
| 17 | | * Session keep alive vs new logging: How to detect session timeout |
|---|
| 18 | | * Send commands (Endless silent loop) |
|---|
| | 17 | It's based on [http://code.google.com/p/thelastripper/wiki/LastFM12UnofficialDocumentation this protocoll documentation]. |
|---|
| | 18 | |
|---|
| | 19 | Working: |
|---|
| | 20 | |
|---|
| | 21 | * Login |
|---|
| | 22 | * Gettings first playlist |
|---|
| | 23 | |
|---|
| | 24 | Todo: |
|---|
| | 25 | |
|---|
| | 26 | * Remove and get new Tracks |
|---|
| | 27 | * Change channel |
|---|
| | 28 | * Handle errors |
|---|
| | 29 | * Session keep alive vs new logging: How to detect session timeout |
|---|
| | 30 | * Send commands (Endless silent loop) |
|---|
| | 31 | |
|---|
| | 32 | === Additional dependencies === |
|---|
| | 33 | |
|---|
| | 34 | <dependencies> |
|---|
| | 35 | |
|---|
| | 36 | |
|---|
| | 37 | === UPnP ContentDirectory structure === |
|---|
| | 38 | |
|---|
| | 39 | <description of the data struture> |
|---|
| | 40 | |
|---|
| | 41 | === Configuration === |
|---|
| | 42 | |
|---|
| | 43 | The backend accepts these options: |
|---|
| | 44 | |
|---|
| | 45 | '''<option>:''':: <description> |
|---|
| | 46 | |
|---|
| | 47 | ==== Examples ==== |
|---|
| | 48 | |
|---|
| | 49 | New config file: |
|---|
| | 50 | |
|---|
| | 51 | {{{ |
|---|
| | 52 | #!xml |
|---|
| | 53 | <plugin active="yes"> |
|---|
| | 54 | <backend>your_name</backend> |
|---|
| | 55 | <name>your_name</name> |
|---|
| | 56 | </plugin> |
|---|
| | 57 | }}} |
|---|
| | 58 | |
|---|
| | 59 | |
|---|
| | 60 | Python code: |
|---|
| | 61 | |
|---|
| | 62 | {{{ |
|---|
| | 63 | #!python |
|---|
| | 64 | coherence.add_plugin('your_nameStore', |
|---|
| | 65 | name='your_name') |
|---|
| | 66 | }}} |
|---|
| | 67 | |
|---|
| | 68 | DBus: |
|---|
| | 69 | |
|---|
| | 70 | {{{ |
|---|
| | 71 | #!python |
|---|
| | 72 | coherence_service = dbus.SessionBus().get_object('org.Coherence','/org/Coherence') |
|---|
| | 73 | coherence_service.add_plugin('your_name', |
|---|
| | 74 | {'name':'your_name'}, |
|---|
| | 75 | dbus_interface='org.Coherence', |
|---|
| | 76 | reply_handler=add_plugin_callback, |
|---|
| | 77 | error_handler=error_callback) |
|---|
| | 78 | }}} |
|---|
| | 79 | |
|---|
| | 80 | Commandline: |
|---|
| | 81 | |
|---|
| | 82 | {{{ |
|---|
| | 83 | #!sh |
|---|
| | 84 | coherence --plugin=backend:your_name |
|---|
| | 85 | }}} |
|---|
| | 86 | |
|---|
| | 87 | |
|---|
| | 88 | === Open Tickets for this backend ([/newticket?component=MediaServer%20Backend%20YouTube new...]) === |
|---|
| | 89 | |
|---|
| | 90 | [[TicketQuery(component=MediaServer Backend your_name&status=new|assigned)]] |