vavavr00m / noserub

Automatically exported from code.google.com/p/noserub
0 stars 0 forks source link

YouTube Preview-Images not shown #334

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Preview-Images for YouTube Videos are not shown in the latest version.
This is because of the regex to determine the video-id.

I suggest the following patch:
noserub/app/models/services:
30c30
<       if(preg_match('/watch\?v=(.*)"/iU', $raw_content, $matches)) {

---
>       if(preg_match('/watch\?v=(.*)[&"]/iU', $raw_content, $matches)) {

Original issue reported on code.google.com by h3ndrik...@gmail.com on 20 Jan 2010 at 1:45

GoogleCodeExporter commented 9 years ago
fixed in r1923, although the old images are not updated. for a cleaner solution 
an additional migration would be 
nice.

Original comment by dirk.olb...@gmail.com on 20 Jan 2010 at 3:07