Changeset 1298024
- Timestamp:
- 12/01/2015 06:42:16 AM (10 years ago)
- Location:
- simple-youtube/trunk
- Files:
-
- 3 edited
-
inc/youtube.playlist.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
simple-youtube.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-youtube/trunk/inc/youtube.playlist.js
r1113795 r1298024 22 22 if (typeof(time) === 'number') 23 23 return parseInt(time); 24 var s = time.split(':'); 25 if (s.length == 1) 26 return parseInt(s); 27 return parseInt(s[0])*60 + parseInt(s[1]); 24 var time_parts = time.split(':').reverse(); 25 if (time_parts.length == 1) 26 return parseInt(time_parts); 27 s = parseInt(time_parts[0]) || 0; 28 m = (parseInt(time_parts[1]) || 0) * 60; 29 h = (parseInt(time_parts[2]) || 0) * 60 * 60; 30 return s+m+h; 28 31 } 29 32 -
simple-youtube/trunk/readme.txt
r1266576 r1298024 5 5 Requires at least: 3.2.1 6 6 Tested up to: 4.3.1 7 Stable tag: 1.5. 67 Stable tag: 1.5.7 8 8 9 9 Simple youtube plugin to help embed youtube videos … … 58 58 == Changelog == 59 59 60 = 1.5.7 = 61 * Allow to specify time with hours like 00:00:00 instead of just 00:00 62 60 63 = 1.5.6 = 61 64 * Accept dash and underscore for video id in urls. -
simple-youtube/trunk/simple-youtube.php
r1266576 r1298024 4 4 Plugin URI: http://roidayan.com 5 5 Description: YouTube with playlist 6 Version: 1.5. 66 Version: 1.5.7 7 7 Author: Roi Dayan 8 8 Author URI: http://roidayan.com
Note: See TracChangeset
for help on using the changeset viewer.