projects
/
embedvideo
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9b0ef7
)
Fixed dailymotion import issues
master
author
Alan Pippin
<apippin@pippins.net>
Sun, 3 Oct 2010 03:36:20 +0000
(21:36 -0600)
committer
Alan J. Pippin
<ajp@pippins.net>
Sun, 3 Oct 2010 03:36:20 +0000
(21:36 -0600)
ItemAddEmbedVideo.inc
patch
|
blob
|
history
diff --git
a/ItemAddEmbedVideo.inc
b/ItemAddEmbedVideo.inc
index 22986988fd3957466a24a292f67d18a4ddd98951..2ba1adf30853a3884883c3e4d30ccdf289c697da 100644
(file)
--- a/
ItemAddEmbedVideo.inc
+++ b/
ItemAddEmbedVideo.inc
@@
-578,7
+578,7
@@
class ItemAddEmbedVideo extends ItemAddPlugin {
$thumbnail=$dailymotionThumbnailUrl.$item_id;
/* Format the description to hold a reference to the embedded video */
$thumbnail=$dailymotionThumbnailUrl.$item_id;
/* Format the description to hold a reference to the embedded video */
- if(preg_match('/
<.+? value="(.+?)" class=".+?" id="video_player_embed_code_text" \/>
/', $contents, $matches)) {
+ if(preg_match('/
embed code:.+? value="(.+?)"
/', $contents, $matches)) {
$description=$matches[1];
$description=preg_replace("/"/","'",$description);
$description=preg_replace("/</","<",$description);
$description=$matches[1];
$description=preg_replace("/"/","'",$description);
$description=preg_replace("/</","<",$description);