Skip to content

Commit

Permalink
Fix some bugs while collecting videos.
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelycold committed Feb 24, 2020
1 parent ddf7433 commit f9c352e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ private void fillInsertContentValue(ContentValues insertData, int position) {
Integer dislikeNum = allVideosInfo.getDislikeNumber(selectedCardPosition);
Integer updateTime = allVideosInfo.getUploadTimeStamp(selectedCardPosition);
Integer videoDuration = allVideosInfo.getDurationInt(selectedCardPosition);
System.out.println("Add data:" + updateTime + ", " + videoDuration);
insertData.put("VIDEONAME", videosName);
insertData.put("COVERURL", coverUrl);
insertData.put("PREVIEWURL", previewUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ public static ArrayList<HashMap<String, Object>> searchVideos(String searchConte
hashMap.put("preview_video_url", previewVideoUrl);
hashMap.put("total_videos", totalVideosNum);
hashMap.put("hd", isHD);
hashMap.put("duration_int", duration);
hashMap.put("UpdateTimeStamp", unixTimeStamp);

allVideosInfo.add(hashMap);

Expand Down
12 changes: 7 additions & 5 deletions app/src/main/res/menu/main_action_bar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
app:showAsAction="always"
android:orderInCategory="2"/>

<item android:id="@+id/action_search"
android:title="Search"
android:orderInCategory="3"
android:icon="@drawable/ic_search_black_18dp"
app:showAsAction="always"/>



<item android:id="@+id/action_category"
Expand All @@ -30,6 +26,12 @@
app:showAsAction="always"
android:orderInCategory="99"/>

<item android:id="@+id/action_search"
android:title="Search"
android:orderInCategory="100"
android:icon="@drawable/ic_search_black_18dp"
app:showAsAction="always"/>

<item android:id="@+id/give_me_a_star"
android:title="Give me a ⭐"
android:icon="@drawable/ic_autorenew_black_18dp"
Expand Down

0 comments on commit f9c352e

Please sign in to comment.