Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thor77/ccparser
https://github.com/thor77/ccparser
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/thor77/ccparser
- Owner: Thor77
- Created: 2014-10-15T11:39:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T12:31:51.000Z (over 7 years ago)
- Last Synced: 2024-09-11T01:56:08.665Z (about 2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
How to use
==========
1. Place your plugin(s) in the `cc_platforms`-folder
2. edit the host and port variable at the first line of main.py
3. run `main.py`
4. Do a get-request on the host and port you set. The answer will look like this:
`
{pluginname: [[title, artist, album], [title, artist, album], ...], ...}
`How to write a plugin
=====================1. Create a new .py-file in the `cc_platforms`-folder
2. Import the plugin-template `from cc_platform import Platform`
3. Create a child-class of the template `class MyPlugin(Platform)`
4. Override the `get_data` method of the template, it has to return the following data:
`
[[title, artist, album], [title, artist, album], ...]
`