Update extractor and refactored NewPipe
This commit is contained in:
parent
bddd9b3409
commit
146d4a8365
254 changed files with 7836 additions and 7302 deletions
19
app/src/main/res/xml/appearance_settings.xml
Normal file
19
app/src/main/res/xml/appearance_settings.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/settings_category_appearance_title">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_theme_value"
|
||||
android:entries="@array/theme_description_list"
|
||||
android:entryValues="@array/theme_values_list"
|
||||
android:key="@string/theme_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/theme_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/show_next_video_key"
|
||||
android:title="@string/show_next_and_similar_title"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
25
app/src/main/res/xml/content_settings.xml
Normal file
25
app/src/main/res/xml/content_settings.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/content">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_language_value"
|
||||
android:entries="@array/language_names"
|
||||
android:entryValues="@array/language_codes"
|
||||
android:key="@string/search_language_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/search_language_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/show_age_restricted_content"
|
||||
android:title="@string/show_age_restricted_content_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/show_search_suggestions_key"
|
||||
android:summary="@string/show_search_suggestions_summary"
|
||||
android:title="@string/show_search_suggestions_title"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
32
app/src/main/res/xml/download_settings.xml
Normal file
32
app/src/main/res/xml/download_settings.xml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/settings_category_downloads_title">
|
||||
|
||||
<Preference
|
||||
android:dialogTitle="@string/download_path_dialog_title"
|
||||
android:key="@string/download_path_key"
|
||||
android:summary="@string/download_path_summary"
|
||||
android:title="@string/download_path_title"/>
|
||||
|
||||
<Preference
|
||||
android:dialogTitle="@string/download_path_audio_dialog_title"
|
||||
android:key="@string/download_path_audio_key"
|
||||
android:summary="@string/download_path_audio_summary"
|
||||
android:title="@string/download_path_audio_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_file_charset_value"
|
||||
android:entries="@array/settings_filename_charset_name"
|
||||
android:entryValues="@array/settings_filename_charset"
|
||||
android:key="@string/settings_file_charset_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/settings_file_charset_title"/>
|
||||
|
||||
<EditTextPreference
|
||||
android:defaultValue="@string/settings_file_replacement_character_default_value"
|
||||
android:key="@string/settings_file_replacement_character_key"
|
||||
android:summary="@string/settings_file_replacement_character_summary"
|
||||
android:title="@string/settings_file_replacement_character_title"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
19
app/src/main/res/xml/history_settings.xml
Normal file
19
app/src/main/res/xml/history_settings.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:key="general_preferences"
|
||||
android:title="@string/settings_category_history_title">
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/enable_watch_history_key"
|
||||
android:summary="@string/enable_watch_history_summary"
|
||||
android:title="@string/enable_watch_history_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/enable_search_history_key"
|
||||
android:summary="@string/enable_search_history_summary"
|
||||
android:title="@string/enable_search_history_title"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
31
app/src/main/res/xml/main_settings.xml
Normal file
31
app/src/main/res/xml/main_settings.xml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:key="general_preferences"
|
||||
android:title="@string/settings">
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.VideoAudioSettingsFragment"
|
||||
android:icon="?attr/audio"
|
||||
android:title="@string/settings_category_video_audio_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.DownloadSettingsFragment"
|
||||
android:icon="?attr/download"
|
||||
android:title="@string/settings_category_downloads_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.AppearanceSettingsFragment"
|
||||
android:icon="?attr/palette"
|
||||
android:title="@string/settings_category_appearance_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.HistorySettingsFragment"
|
||||
android:icon="?attr/history"
|
||||
android:title="@string/settings_category_history_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.ContentSettingsFragment"
|
||||
android:icon="?attr/language"
|
||||
android:title="@string/content"/>
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,210 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:key="general_preferences"
|
||||
android:title="@string/settings">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/settings_category_video_audio"
|
||||
android:textAllCaps="true"
|
||||
android:title="@string/settings_category_video_audio_title">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/use_external_video_player_key"
|
||||
android:summary="@string/use_external_video_player_summary"
|
||||
android:title="@string/use_external_video_player_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/use_external_audio_player_key"
|
||||
android:title="@string/use_external_audio_player_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_resolution_value"
|
||||
android:entries="@array/resolution_list"
|
||||
android:entryValues="@array/resolution_list"
|
||||
android:key="@string/default_resolution_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_resolution_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/show_higher_resolutions_key"
|
||||
android:summary="@string/show_higher_resolutions_summary"
|
||||
android:title="@string/show_higher_resolutions_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/preferred_video_format_default"
|
||||
android:entries="@array/video_format_list"
|
||||
android:entryValues="@array/video_format_list"
|
||||
android:key="@string/preferred_video_format_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/preferred_video_format_title"
|
||||
tools:summary="MPEG-4"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_audio_format_value"
|
||||
android:entries="@array/audio_format_description_list"
|
||||
android:entryValues="@array/audio_format_list"
|
||||
android:key="@string/default_audio_format_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_audio_format_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/use_old_player_key"
|
||||
android:summary="@string/use_old_player_summary"
|
||||
android:title="@string/use_old_player_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/player_gesture_controls_key"
|
||||
android:summary="@string/player_gesture_controls_summary"
|
||||
android:title="@string/player_gesture_controls_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/resume_on_audio_focus_gain_key"
|
||||
android:summary="@string/resume_on_audio_focus_gain_summary"
|
||||
android:title="@string/resume_on_audio_focus_gain_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/settings_category_popup"
|
||||
android:textAllCaps="true"
|
||||
android:title="@string/settings_category_popup_title">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_popup_resolution_value"
|
||||
android:entries="@array/resolution_list"
|
||||
android:entryValues="@array/resolution_list"
|
||||
android:key="@string/default_popup_resolution_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_popup_resolution_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/popup_remember_size_pos_key"
|
||||
android:summary="@string/popup_remember_size_pos_summary"
|
||||
android:title="@string/popup_remember_size_pos_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/settings_category_appearance"
|
||||
android:textAllCaps="true"
|
||||
android:title="@string/settings_category_appearance_title">
|
||||
.
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_theme_value"
|
||||
android:entries="@array/theme_description_list"
|
||||
android:entryValues="@array/theme_list"
|
||||
android:key="@string/theme_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/theme_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/show_play_with_kodi_key"
|
||||
android:summary="@string/show_play_with_kodi_summary"
|
||||
android:title="@string/show_play_with_kodi_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/show_next_video_key"
|
||||
android:title="@string/show_next_and_similar_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/settings_content_options"
|
||||
android:textAllCaps="true"
|
||||
android:title="@string/content">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_language_value"
|
||||
android:entries="@array/language_names"
|
||||
android:entryValues="@array/language_codes"
|
||||
android:key="@string/search_language_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/search_language_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/show_age_restricted_content"
|
||||
android:title="@string/show_age_restricted_content_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/settings_category_downloads"
|
||||
android:title="@string/settings_category_downloads_title">
|
||||
|
||||
<Preference
|
||||
android:dialogTitle="@string/download_path_dialog_title"
|
||||
android:key="@string/download_path_key"
|
||||
android:summary="@string/download_path_summary"
|
||||
android:title="@string/download_path_title"/>
|
||||
|
||||
<Preference
|
||||
android:dialogTitle="@string/download_path_audio_dialog_title"
|
||||
android:key="@string/download_path_audio_key"
|
||||
android:summary="@string/download_path_audio_summary"
|
||||
android:title="@string/download_path_audio_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:key="@string/settings_file_charset_key"
|
||||
android:summary="%s"
|
||||
android:defaultValue="@string/default_file_charset_value"
|
||||
android:title="@string/settings_file_charset_title"
|
||||
android:entryValues="@array/settings_filename_charset"
|
||||
android:entries="@array/settings_filename_charset_name" />
|
||||
|
||||
<EditTextPreference
|
||||
android:key="@string/settings_file_replacement_character_key"
|
||||
android:summary="@string/settings_file_replacement_character_summary"
|
||||
android:defaultValue="@string/settings_file_replacement_character_default_value"
|
||||
android:title="@string/settings_file_replacement_character_title" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/settings_category_other"
|
||||
android:textAllCaps="true"
|
||||
android:title="@string/settings_category_other_title">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/autoplay_through_intent_key"
|
||||
android:summary="@string/autoplay_by_calling_app_summary"
|
||||
android:title="@string/autoplay_by_calling_app_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/show_search_suggestions_key"
|
||||
android:summary="@string/show_search_suggestions_summary"
|
||||
android:title="@string/show_search_suggestions_title"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/enable_search_history_key"
|
||||
android:title="@string/enable_search_history_title"
|
||||
android:summary="@string/enable_search_history_summary"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/enable_watch_history_key"
|
||||
android:title="@string/enable_watch_history_title"
|
||||
android:summary="@string/enable_watch_history_summary"/>
|
||||
<!--
|
||||
<CheckBoxPreference
|
||||
android:key="@string/use_tor_key"
|
||||
android:title="@string/use_tor_title"
|
||||
android:summary="@string/use_tor_summary"
|
||||
android:defaultValue="false"/>
|
||||
-->
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
103
app/src/main/res/xml/video_audio_settings.xml
Normal file
103
app/src/main/res/xml/video_audio_settings.xml
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:title="@string/settings_category_video_audio_title">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_resolution_value"
|
||||
android:entries="@array/resolution_list_description"
|
||||
android:entryValues="@array/resolution_list_values"
|
||||
android:key="@string/default_resolution_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_resolution_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_popup_resolution_value"
|
||||
android:entries="@array/resolution_list_description"
|
||||
android:entryValues="@array/resolution_list_values"
|
||||
android:key="@string/default_popup_resolution_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_popup_resolution_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/show_higher_resolutions_key"
|
||||
android:summary="@string/show_higher_resolutions_summary"
|
||||
android:title="@string/show_higher_resolutions_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_video_format_value"
|
||||
android:entries="@array/video_format_description_list"
|
||||
android:entryValues="@array/video_format_values_list"
|
||||
android:key="@string/default_video_format_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_video_format_title"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/default_audio_format_value"
|
||||
android:entries="@array/audio_format_description_list"
|
||||
android:entryValues="@array/audio_format_values_list"
|
||||
android:key="@string/default_audio_format_key"
|
||||
android:summary="%s"
|
||||
android:title="@string/default_audio_format_title"/>
|
||||
|
||||
<PreferenceCategory
|
||||
android:layout="@layout/settings_category_header_layout"
|
||||
android:title="@string/settings_category_player_title">
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/use_external_video_player_key"
|
||||
android:summary="@string/use_external_video_player_summary"
|
||||
android:title="@string/use_external_video_player_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/use_external_audio_player_key"
|
||||
android:title="@string/use_external_audio_player_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/use_old_player_key"
|
||||
android:summary="@string/use_old_player_summary"
|
||||
android:title="@string/use_old_player_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/show_play_with_kodi_key"
|
||||
android:summary="@string/show_play_with_kodi_summary"
|
||||
android:title="@string/show_play_with_kodi_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:layout="@layout/settings_category_header_layout"
|
||||
android:title="@string/settings_category_player_behavior_title">
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/autoplay_through_intent_key"
|
||||
android:summary="@string/autoplay_by_calling_app_summary"
|
||||
android:title="@string/autoplay_by_calling_app_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/resume_on_audio_focus_gain_key"
|
||||
android:summary="@string/resume_on_audio_focus_gain_summary"
|
||||
android:title="@string/resume_on_audio_focus_gain_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/player_gesture_controls_key"
|
||||
android:summary="@string/player_gesture_controls_summary"
|
||||
android:title="@string/player_gesture_controls_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/popup_remember_size_pos_key"
|
||||
android:summary="@string/popup_remember_size_pos_summary"
|
||||
android:title="@string/popup_remember_size_pos_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue