]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Remove redundant videotype from parseUrl return array
authorSteve Clay <steve@mrclay.org>
Tue, 10 Apr 2012 14:44:40 +0000 (10:44 -0400)
committerSteve Clay <steve@mrclay.org>
Tue, 10 Apr 2012 14:44:40 +0000 (10:44 -0400)
actions/videolist/edit.php
lib/Videolist/Platform/Bliptv.php
lib/Videolist/Platform/Gisstv.php
lib/Videolist/Platform/Metacafe.php
lib/Videolist/Platform/Vimeo.php
lib/Videolist/Platform/Youtube.php

index 480a3943b7c0f25d01c13f73d8d2a1bc4d9bd115..4b96720d8e3b76fbacc3f045bc9a8c835ab10e92 100644 (file)
@@ -48,6 +48,7 @@ if(!$video_guid) {
        unset($input['title']);\r
        unset($input['description']);\r
     $input = array_merge($parsed, $platform->getData($parsed), $input);\r
+    $input['videotype'] = $platform->getType();\r
        \r
 } else {\r
        unset($input['video_url']);\r
index 6956e060d50434cf90f361f2e61b4c9e7653ea61..aa53032f9a1f542220f0033cc56b61a95becb67e 100644 (file)
@@ -17,7 +17,6 @@ class Videolist_Platform_Bliptv implements Videolist_PlatformInterface
         }
 
         return array(
-            'videotype' => 'bliptv',
             'video_id' => $parsed['path'],
         );
     }
index f811619a8e167baaef36f93e3f0fe690f1ab2427..b7989844996016e980c91e230c957c8018ace524 100644 (file)
@@ -25,7 +25,6 @@ class Videolist_Platform_Gisstv implements Videolist_PlatformInterface
         }
 
         return array(
-            'videotype' => 'gisstv',
             'video_id' => $video_id,
         );
     }
index 3cf2fb8cecd75aefdb3a7757f323d567fde5c3f3..7da6d1647d677464f82885e3086f604cca055827 100644 (file)
@@ -17,7 +17,6 @@ class Videolist_Platform_Metacafe implements Videolist_PlatformInterface
         }
 
         return array(
-            'videotype' => 'metacafe',
             'video_id' => $path[2],
         );
     }
index 82bd57309be64f6f3ca2e18310ecfeeeaba4c9bd..a4a1f275c7cae3e81d80aef6fda24e94338af955 100644 (file)
@@ -17,7 +17,6 @@ class Videolist_Platform_Vimeo implements Videolist_PlatformInterface
         }
 
         return array(
-            'videotype' => 'vimeo',
             'video_id' => $path[1],
         );
     }
index 648ac282cc76da3483bf36f4c6a589297f88a50b..d5a388356d4b33f4134e23a26e48a44d71b83135 100644 (file)
@@ -27,7 +27,6 @@ class Videolist_Platform_Youtube implements Videolist_PlatformInterface
         }
         if ($id) {
             return array(
-                'videotype' => 'youtube',
                 'video_id' => $id,
             );
         }