CVS edit link for daveeddydotcom
I want to contribute a Drupal module I have written to integrate Ampache (http://ampache.org) with Drupal. As of right now there is no Drupal module that integrates with Ampache, and there is definitely a desire for it (see http://drupal.org/node/80992).This is my first Drupal (not my first encounter with PHP though) and I am really excited to release it in hopes that people will actually use it! This module will allow Drupal users to place a block on their site that will display the song they are currently listening to on Ampache along with the album art.
I have worked hard to make this module really customizable, easy to use, and more importantly secure. In the coming week or so i'm going to make a YouTube video going over how to install the module, and how to secure it by creating a limited Ampache account with ACL's on Ampache's end to allow for the drupal module to access Ampache securely.
I have a working version of this module that I use on my Drupal powered site right now (see http://www.daveeddy.com), it's the block on the right hand side labeled Ampache Now Playing.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | ampachenowplaying-drupal-1.0.2.tar_.gz | 7.45 KB | daveeddydotcom |
| #6 | ampachenowplaying-1.01.tar_.gz | 6.86 KB | daveeddydotcom |
| #1 | ampachenowplaying-1.0.tar_.gz | 6.86 KB | daveeddydotcom |
Comments
Comment #1
daveeddydotcom commentedAmpache Now Playing Module.
Comment #2
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module/theme; for modules it should include also a comparison with the existing solutions, while for themes a screenshot is also required.
Comment #3
daveeddydotcom commentedI'm not sure what information you are looking for that I did not state in the initial message, but I will try to be more succinct while adding more details.
Features
This module can pull information about the current playing song from an Ampache server via it's RSS feed, and display it in a block. It can pull the song title, album, and artist, the date the song was played, and from what user agent the song is being streamed to (ie, ampache web interface, iphone, android, etc.).
This module can also authenticate to Ampache, and pull the album art, and display it in the block also.
This module can cache both the album art and the RSS feed (both user customizable). The RSS is cached in the database for a default max age of 10 seconds, so if this module is used on a website that generates a large number of hits, this will limit the amount of connections drupal will make to Ampache.
The album art information is also stored in a database, and the artwork itself is saved, and scaled down (to make the file size smaller). It is saved in {drupal_default_files}/ampache.
The user can clear this cache at anytime if they choose from the module settings menu.
Other Modules
There is really no current solution that can do what this module does, i searched long and hard before coding this module for myself.
Comment #4
avpadernoThanks for the reply.
When I ask for more information is because the requirements speak of .
You effectively added more information, as you didn't before reported which data are hosted on Ampache, and how the module grabs those data in.
Comment #5
daveeddydotcom commentedah i see thank you for the quick reply.
What i described in post #3 is effectively my whole module, if there is any more information that I'm missing please let me know and I can add it in.
Thank you
Comment #6
daveeddydotcom commentedI'm not sure if my code is already being reviewed, but I have cleaned up some of the code to comply more with Drupals standards, and fixed hook_uninstall to clear all files downloaded by this module.
Comment #7
daveeddydotcom commentedHello,
Would it be possible to get a time frame of when you think my module would be reviewed?
Thank you,
Dave
Comment #8
daveeddydotcom commentedAttached is the newest version of my module 1.0.2.
Comment #9
avpadernot().t(), as that is already done by Drupal core code.The first argument of
t()is a literal string, not a concatenation of strings. The script used to create the translation template is not able to handle any dynamic value, even in the case of code similar tot($variable); this means that if the argument of the function is not a literal string, it will not appear in the translation template.Check also you are not using tabs to indent the code.
The code should use a theme function to output HTML.
Use
t()-placeholders.It's not the implementation of
hook_validate().Why isn't the code using
valid_url()?Comment #10
avpadernoPlease read the following links as this is very important information about CVS applications.
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for these applications. Please read Migrating from CVS Applications to (Git) Full Project Applications and Applying for permission to opt into security advisory coverage on how this affects and benefits you and the application process. In short, every user has now the permissions necessary to create new projects, but they need to apply for opt into security advisory coverage. Without applying, the projects will have a warning on projects that says:
Comment #11
avpaderno