Created
October 23, 2014 14:37
-
-
Save azhurb/64bf582820b96236227b to your computer and use it in GitHub Desktop.
Fix vclub current video info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: server/lib/stb.class.php | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- server/lib/stb.class.php (revision 122b15b5b3f603a8a0cbcd19f63f2a61d99f90e0) | |
| +++ server/lib/stb.class.php (revision ) | |
| @@ -1115,11 +1115,11 @@ | |
| $video = $this->db->from('video')->where(array('rtsp_url' => $param, 'protocol' => 'custom'))->get()->first(); | |
| if (empty($video)){ | |
| - preg_match("/\/([^\/]+)\/[^\/]+\/(\d+)\.[a-z]*$/", $param, $tmp_arr); | |
| + preg_match("/\/([^\/]+)\/[^\/]+\/(\d+)\.[a-z0-9]*$/", $param, $tmp_arr); | |
| } | |
| }else{ | |
| - preg_match("/auto \/media\/([\S\s]+)\/(\d+)\.[a-z]*$/", $param, $tmp_arr); | |
| + preg_match("/auto \/media\/([\S\s]+)\/(\d+)\.[a-z0-9]*$/", $param, $tmp_arr); | |
| } | |
| if (empty($video) && !empty($tmp_arr)){ | |
| \ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment