Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi and thanks for your nice words.

    You can do that easily with just a few lines. Have a look here:

    <?php
    	/** The total runtime in minutes */
    	$minutes = "192 minutes";
    	/** We only want to keep the number */
    	$minutes  = preg_replace("'[^0-9]'", "", $minutes);
    	/** Convert to time */
    	$new_time = date("H:i:s", mktime(0, $minutes));
    	/** Output */
    	echo "Runtime: " . $new_time;

    Let me know if that worked for you.

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    It’s working. Thank you very much!

    Plugin Author thaikolja

    (@thaikolja)

    You’re very welcome ?? If you have any suggestions to make IMDb Connector better, let me know.

    Thread Starter Film Complet En Francais

    (@film-complet-en-francais)

    An option not to cache movie posters would be nice. As I don’t use posters I have to delete it manually.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Movie runtime output format’ is closed to new replies.