Commit 27934ab6 authored by Rohit Yadav's avatar Rohit Yadav

YouTubeUploader: Avoid assert failure, handle error...

parent 59e1e5bc
...@@ -143,8 +143,11 @@ YouTubeUploader::uploadFinished() ...@@ -143,8 +143,11 @@ YouTubeUploader::uploadFinished()
parser.read(); parser.read();
/* Checks VideoID parsed by the parser */ /* Checks VideoID parsed by the parser */
Q_ASSERT( parser.getVideoId() != "" ); QString videoUrl;
QString videoUrl = VIDEO_URL + parser.getVideoId(); if ( parser.getVideoId() != "" )
videoUrl = VIDEO_URL + parser.getVideoId();
else
videoUrl = ""; /* Some error may've occured at YouTube */
emit uploadOver( QString( videoUrl ) ); emit uploadOver( QString( videoUrl ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment