My project is additional module for Emfield, which adds support for czech video provider "Česká televize".
You can test module functionality by selecting one the of videos on this page: http://www.ceskatelevize.cz/ivysilani/ (for example this one)

Link to my project page: http://drupal.org/sandbox/ricoo/1145084

CommentFileSizeAuthor
#4 i1145112.coder_.txt8.46 KBattiks

Comments

ralt’s picture

Component: new project application » module

Hi,

Have you tried contacting the Emfield maintainer to add this feature, or to become co-maintainer? Adding a module for the sole purpose of adding a provider seems overkill to me.

ralt’s picture

Status: Needs review » Postponed (maintainer needs more info)
tomasbedrich’s picture

Status: Postponed (maintainer needs more info) » Needs review

No, I haven't. I thought that it is normal practice, that new media providers for Emfield are added by modules. Please take a look at Emfield project page:

Media: 8Tracks
Media: Archive
Media: Bits On The Run
Media: BlipTV
Media: Brightcove
Media: Facebook
Media: Flickr
Media: Fox News
...

All these providers and much more are added to Emfield by module at this time. So why not to add next provider by this way?

attiks’s picture

Status: Needs review » Needs work
StatusFileSize
new8.46 KB

I did a quick Coder review to check the Coding Standards, see below.

tomasbedrich’s picture

I read your (Coder's) warnings and corrected the code. I hope it is OK now.

tomasbedrich’s picture

Status: Needs work » Needs review

Sorry, I forgot to change status.

attiks’s picture

Status: Needs review » Needs work

I tried the module with the link at the top, but i got

warning: Parameter 6 to emvideo_ceskatelevize_video() expected to be a reference, value given in /home/quickstart/websites/example6.dev/sites/all/modules/emfield/emfield.module on line 649.

also coder found 4 minor remarks:

sites/all/modules/media____esk___televize____t_/providers/ceskatelevize.inc:
 +214: [minor] Missing period
 +214: [minor] Format should be * Implementation of hook_foo().
 +242: [minor] in most cases, replace the string function with the drupal_ equivalent string functions
 +255: [minor] in most cases, replace the string function with the drupal_ equivalent string functions
tomasbedrich’s picture

Status: Needs work » Needs review

By testing I found the error you are getting is not caused by my module, but maybe you don't have actual version of Emvideo module.

I also corrected 2 minor Coder problems in comments, but I don't want to fix the others:

+242: [minor] in most cases, replace the string function with the drupal_ equivalent string functions
 +255: [minor] in most cases, replace the string function with the drupal_ equivalent string functions

It's becouse there is written in the Drupal documentation, that functions like drupal_strlen and drupal_substr are UTF-8 safe, but they are much slower. Here I work with URL so I surely know, that I won't get UTF-8 string there and that's why I use better-performance funcions there.

attiks’s picture

Status: Needs review » Needs work

Regarding the UTF-8 in domain names, you know they will be appearing shortly: http://www.icann.org/en/topics/idn/ so better be safe than sorry, the speed difference will be neglect-able.

tomasbedrich’s picture

Status: Needs work » Needs review

Okay, you are the boss. I changed the code.

klausi’s picture

Status: Needs review » Needs work
  • It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
  • lines in README.txt should not exceed 80 characters, see also http://drupal.org/node/447604
  • media_ceskatelevize_emfield_providers(): All functions should have doc blocks, especially the hook implementations. See http://drupal.org/node/1354#hookimpl
  • ceskatelevize.inc: I think you just copied the documentation from a emfield template. It contains statements that do not apply to your code and it makes it very hard to find actual documentation for the code. Please remove the template-generic messages and convert the rest to fit your provider.
  • "$autoplay = $autoplay ? 'true' : 'false';" should be "$autoplay = $autoplay ? 'TRUE' : 'FALSE';"
  • @param and @return: the description on the new line should be indented 2 spaces, see here http://drupal.org/node/1354#functions
  • I think you should implement hook_theme() to register your theme item, no?
  • theme_emvideo_ceskatelevize_flash(): you should sanitize all variables before adding them to $output to avoid possible XSS issues.
misc’s picture

@ricoo has been contacted to ask if the application is abandoned.

After ten weeks with a status of needs work: the applicant may be contacted by a reviewer to determine whether the application was indeed abandoned. The action taken by the reviewer should be documented in the project application issue.

http://drupal.org/node/894256

tomasbedrich’s picture

Status: Needs work » Postponed

Changig state to postponed (on @MiSc request) until I have enough time to work on this project.

klausi’s picture

Status: Postponed » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.