Buggy code:
public class VideoParser extends AsyncTask { private static String TAG_LOG = "YouTubeHelper" ; private String ID_VIDEO ; private ProgressDialog loading ; private String loadingMessage ; private Context context ; private VideoParser . OnComplete onComplete ; private VideoItem values ; private Boolean showLoading = false ; private Boolean error = false ; private Boolean showLog = false ; public VideoParser ( String ID_VIDEO ) { } public void showLoading ( Boolean showLoading , String loadingMessage , Context context ) { } public void onPauseLoading ( ) { } public void showLog ( Boolean showLog ) { } public interface OnComplete { public void onFinish ( VideoItem values ) { } public void onError ( ) { } } public void onFinish ( VideoParser . OnComplete onComplete ) { } @ Override protected Object doInBackground ( Object [ ] params ) { try { Document feed = Jsoup . connect ( ( ( "https:////gdata.youtube.com//feeds//api//videos//" + ( ID_VIDEO ) ) + "?v=2" ) ) . userAgent ( "Mozilla//5.0<seq2seq4repair_space>(Windows<seq2seq4repair_space>NT<seq2seq4repair_space>6.2;<seq2seq4repair_space>WOW64)<seq2seq4repair_space>AppleWebKit//537.22<seq2seq4repair_space>(KHTML,<seq2seq4repair_space>like<seq2seq4repair_space>Gecko)<seq2seq4repair_space>Chrome//25.0.1364.172<seq2seq4repair_space>Safari//537.22" ) . timeout ( 60000 ) . ignoreContentType ( true ) . get ( ) ; values . setTitleVideo ( feed . getElementsByTag ( "title" ) . text ( ) ) ; values . setDescriptionVideo ( feed . getElementsByTag ( "media:description" ) . text ( ) ) ; values . setLikeVideo ( feed . select ( "yt|rating" ) . attr ( "numLikes" ) ) ; values . setDislikeVideo ( feed . select ( "yt|rating" ) . attr ( "numDislikes" ) ) ; values . setAverageVideo ( feed . select ( "gd|rating" ) . attr ( "average" ) ) ; values . setViewsVideo ( feed . select ( "yt|statistics" ) . attr ( "viewCount" ) ) ; values . setDurationVideo ( feed . select ( "yt|duration" ) . attr ( "seconds" ) ) ; values . setThumbnailVideo ( feed . select ( "media|thumbnail" ) . first ( ) . attr ( "url" ) ) ; <START_BUG> values . setUrlMediaVideo ( feed . select ( "media|[url]" ) . get ( 1 ) . attr ( "url" ) ) ; <END_BUG> values . setAuthorVideo ( feed . getElementsByTag ( "name" ) . text ( ) ) ; values . setNumberCommentsVideo ( feed . select ( "gd|feedLink" ) . attr ( "countHint" ) ) ; values . setFeedCommentsVideo ( feed . select ( "gd|feedLink" ) . attr ( "href" ) ) ; values . setCategoryVideo ( feed . select ( "media|category" ) . attr ( "label" ) ) ; values . setDateVideo ( feed . getElementsByTag ( "yt:uploaded" ) . text ( ) ) ; Document image = Jsoup . connect ( feed . getElementsByTag ( "uri" ) . text ( ) ) . userAgent ( "Mozilla//5.0<seq2seq4repair_space>(Windows<seq2seq4repair_space>NT<seq2seq4repair_space>6.2;<seq2seq4repair_space>WOW64)<seq2seq4repair_space>AppleWebKit//537.22<seq2seq4repair_space>(KHTML,<seq2seq4repair_space>like<seq2seq4repair_space>Gecko)<seq2seq4repair_space>Chrome//25.0.1364.172<seq2seq4repair_space>Safari//537.22" ) . timeout ( 60000 ) . ignoreContentType ( true ) . get ( ) ; values . setThumbnailAuthor ( image . select ( "media|thumbnail" ) . attr ( "url" ) ) ; if ( showLog ) { Log . d ( VideoParser . TAG_LOG , feed . getElementsByTag ( "title" ) . text ( ) ) ; Log . d ( VideoParser . TAG_LOG , feed . getElementsByTag ( "media:description" ) . text ( ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "yt|rating" ) . attr ( "numLikes" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "yt|rating" ) . attr ( "numDislikes" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "gd|rating" ) . attr ( "average" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "yt|statistics" ) . attr ( "viewCount" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "yt|duration" ) . attr ( "seconds" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "media|thumbnail" ) . first ( ) . attr ( "url" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "media|content" ) . get ( 1 ) . attr ( "url" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . getElementsByTag ( "name" ) . text ( ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "gd|feedLink" ) . attr ( "countHint" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "gd|feedLink" ) . attr ( "href" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . select ( "media|category" ) . attr ( "label" ) ) ; Log . d ( VideoParser . TAG_LOG , feed . getElementsByTag ( "yt:uploaded" ) . text ( ) ) ; Log . d ( VideoParser . TAG_LOG , image . select ( "media|thumbnail" ) . attr ( "url" ) ) ; } } catch ( IOException e ) { error = true ; e . printStackTrace ( ) ; } return null ; } @ Override protected void onPreExecute ( ) { } @ Override protected void onPostExecute ( Object o ) { } }

Fix:
values . setUrlMediaVideo ( feed . select ( "media|content" ) . get ( 1 ) . attr ( "url" ) ) ;