diff --git a/.idea/dictionaries/the_scrabi.xml b/.idea/dictionaries/the_scrabi.xml deleted file mode 100644 index bc8411615..000000000 --- a/.idea/dictionaries/the_scrabi.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index bd4202cb3..1bbc21dc2 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -3,10 +3,9 @@ - + diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7f4..6564d52db 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/app/app.iml b/app/app.iml index 58221a4e6..eefc8deb7 100644 --- a/app/app.iml +++ b/app/app.iml @@ -92,12 +92,12 @@ + + + + - - - - \ No newline at end of file diff --git a/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java b/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java index e6618ddbf..d15d6b86a 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java +++ b/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java @@ -51,7 +51,7 @@ public class VideoInfoItemViewCreator { } if(info.thumbnail == null) { - holder.itemThumbnailView.setImageResource(R.drawable.dummi_thumbnail); + holder.itemThumbnailView.setImageResource(R.drawable.dummy_thumbnail); } else { holder.itemThumbnailView.setImageBitmap(info.thumbnail); } diff --git a/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java b/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java index 91e825332..2b7fbf8e4 100644 --- a/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java @@ -288,8 +288,8 @@ public class YoutubeExtractor implements Extractor { videoInfo.upload_date = doc.select("strong[class=\"watch-time-text\"").first() .text(); - // Try to only use date not the text around it - videoInfo.upload_date = matchGroup1("([0-9.]*$)", videoInfo.upload_date); + // Extracting the date itself from header + videoInfo.upload_date = matchGroup1("([A-Za-z]{3}\\s[\\d]{1,2},\\s[\\d]{4}$)", videoInfo.upload_date); // description videoInfo.description = doc.select("p[id=\"eow-description\"]").first() @@ -320,6 +320,9 @@ public class YoutubeExtractor implements Extractor { // view count videoInfo.view_count = doc.select("div[class=\"watch-view-count\"]").first().text(); + // Extracting the number of views from header + videoInfo.view_count = matchGroup1("([0-9,]*$)", videoInfo.view_count); + // next video videoInfo.nextVideo = extractVideoInfoItem(doc.select("div[class=\"watch-sidebar-section\"]").first() .select("li").first()); @@ -383,7 +386,7 @@ public class YoutubeExtractor implements Extractor { format = MediaFormat.M4A.id; } audioStreams.add(new VideoInfo.AudioStream(parser.getText(), - format, currentBandwidth, currentSamplingRate)); + format, currentBandwidth, currentSamplingRate)); } case XmlPullParser.END_TAG: if(tagName.equals("AdaptationSet")) { diff --git a/app/src/main/res/drawable/budy.png b/app/src/main/res/drawable/buddy.png similarity index 100% rename from app/src/main/res/drawable/budy.png rename to app/src/main/res/drawable/buddy.png diff --git a/app/src/main/res/drawable/dummi_thumbnail.png b/app/src/main/res/drawable/dummy_thumbnail.png similarity index 100% rename from app/src/main/res/drawable/dummi_thumbnail.png rename to app/src/main/res/drawable/dummy_thumbnail.png diff --git a/app/src/main/res/layout-land/fragment_videoitem_detail.xml b/app/src/main/res/layout-land/fragment_videoitem_detail.xml index 9e1d2885d..c0c4938d1 100644 --- a/app/src/main/res/layout-land/fragment_videoitem_detail.xml +++ b/app/src/main/res/layout-land/fragment_videoitem_detail.xml @@ -33,7 +33,7 @@ android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:adjustViewBounds="true" - android:src="@drawable/dummi_thumbnail"/> + android:src="@drawable/dummy_thumbnail"/> + android:src="@drawable/buddy" /> + android:src="@drawable/dummy_thumbnail"/> + android:src="@drawable/buddy" /> + android:src="@drawable/dummy_thumbnail"/> + android:text="Video title placeholder"/> + android:src="@drawable/buddy" /> + android:textStyle="bold" + android:textSize="@dimen/text_video_uploader_size" + android:textAppearance="?android:attr/textAppearanceLarge" + android:text="username" /> + android:text="81,754 views" /> + android:text="100" /> + android:text="20" /> + android:text="Published on Jan 01 1975" /> @@ -204,10 +214,10 @@ + android:layout_margin="20dp"/> \ No newline at end of file diff --git a/app/src/main/res/layout/video_item.xml b/app/src/main/res/layout/video_item.xml index d25f524b6..e20e38ce2 100644 --- a/app/src/main/res/layout/video_item.xml +++ b/app/src/main/res/layout/video_item.xml @@ -12,7 +12,7 @@ android:scaleType="centerCrop" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" - android:src="@drawable/dummi_thumbnail"/> + android:src="@drawable/dummy_thumbnail"/> - #dd0000 - #bb0000 + #cd322e + #bc211d #000000 #66000000 \ No newline at end of file diff --git a/app/src/main/res/values/dimentxt.xml b/app/src/main/res/values/dimentxt.xml index 916afd036..135a0e1cd 100644 --- a/app/src/main/res/values/dimentxt.xml +++ b/app/src/main/res/values/dimentxt.xml @@ -4,4 +4,10 @@ 11sp 12sp 12sp + 14sp + 14sp + 12sp + 14sp + 14sp + 14sp \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8dfff75a3..a86ea5544 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4,7 +4,7 @@ NewPipe Nothing found views - Uploaded at: + Published on No StreamPlayer found. You may want to install one. Install one Cancel @@ -45,9 +45,9 @@ Video Audio - Next Video - Show next and similar Videos. - Url not Supported. - Similar Videos - Video Search Language + Next video + Show next and similar videos + URL not supported. + Similar videos + Preferable content language \ No newline at end of file