diff --git a/FeedsYoutubeParser.inc b/FeedsYoutubeParser.inc
index 6092865..b45f26a 100644
--- a/FeedsYoutubeParser.inc
+++ b/FeedsYoutubeParser.inc
@@ -21,14 +21,10 @@ class FeedsYoutubeParser extends FeedsParser {
    * @see FeedsParser::parse()
    */
   public function parse(FeedsSource $source, FeedsFetcherResult $fetcher_result) {
-
     $youtube_feed = $fetcher_result->getRaw();
     $result = new FeedsParserResult();

-
-    /**
-    * @see common_syndication_parser_parse()
-    */
+    // @see common_syndication_parser_parse()
     if (!defined('LIBXML_VERSION') || (version_compare(phpversion(), '5.1.0', '<'))) {
       @$sxml = simplexml_load_string($youtube_feed, NULL);
     }
@@ -44,16 +40,17 @@ class FeedsYoutubeParser extends FeedsParser {
     // Run parsing if the feed is Atom or RSS
     if ($this->isAtomFeed($sxml)) {
       $result = $this->parseAtom($sxml, $source, $fetcher_result);
-
+
     }
     elseif ($this->isRssFeed($sxml)) {
       $result = $this->parseRss20($sxml, $source, $fetcher_result);
-
+
     }
     else {
       throw new Exception(t('FeedsYoutubeParser: Unknown type of feed.'));
     }
-		return $result;
+
+    return $result;
   }

   /**
@@ -166,9 +163,9 @@ class FeedsYoutubeParser extends FeedsParser {
    */
   public function secsToTime($seconds) {
     // Number of seconds in an hour.
-    $unith =3600;
+    $unith = 3600;
     // Number of seconds in a minute.
-    $unitm =60;
+    $unitm = 60;

     // '/' given value by num sec in hour... output = HOURS
     $hh = intval($seconds / $unith);
@@ -206,7 +203,6 @@ class FeedsYoutubeParser extends FeedsParser {
    */
   private function parseAtom(SimpleXMLElement $sxml, FeedsSource $source, FeedsFetcherResult $fetcher_result) {

-
     $fetcher_result->title = $feed_title = (string) $sxml->title;
     $result = new FeedsParserResult();

       // Populate the FeedsFetcherResult object with the parsed results.
@@ -350,7 +346,7 @@ class FeedsYoutubeParser extends FeedsParser {
         'tags' => explode(',', (string) $media->group->keywords),
         'embedded_player' => $player,
         'duration' => $this->secsToTime($length),
-        'duration_raw' => $length,
+        'duration_raw' => (int) $length,
         'view_count' => $viewCount,
         'fav_count' => $favCount,
         'rating' => $rating,
@@ -366,4 +362,4 @@ class FeedsYoutubeParser extends FeedsParser {
     return $result;
   }

-}
+}
\ No newline at end of file
