Skip to content

feat: 支持 QuickJS/Python 爬虫日志接入 Web 调试日志 + 自动 debug 签名 - #107

Open
llb0 wants to merge 317 commits into
fish2018:mainfrom
llb0:main
Open

feat: 支持 QuickJS/Python 爬虫日志接入 Web 调试日志 + 自动 debug 签名#107
llb0 wants to merge 317 commits into
fish2018:mainfrom
llb0:main

Conversation

@llb0

@llb0 llb0 commented Aug 9, 2026

Copy link
Copy Markdown

改动说明:

  1. DebugLogs.java - Console Tab 增加 quickjs 和 python-spider tag 匹配
  2. chaquo/src/main/python/base/spider.py - Python 爬虫日志桥接 SpiderDebug
  3. quickjs Console.java - QuickJS 爬虫日志桥接 SpiderDebug
  4. .github/workflows/android-release.yml - 无签名密钥时自动生成 debug keystore,默认 CNB 不同步

YaChengMu pushed a commit to YaChengMu/webhtv that referenced this pull request Aug 11, 2026
fix: 修复后台音频切换后停止播放
llb0 and others added 30 commits September 4, 2026 16:28
Added a new LinearLayout for auto clear cache settings with two MaterialTextViews.
Removed unnecessary build targets for mobile and leanback.
打开站点选择器定位到当前源,支持在线更新
* 优化签名校验Improve APK signing verification in Updater

Refactor APK signing verification logic to handle cases with empty signing certificate history.

* Enable V1, V2, and V3 signing in build.gradle

* 来源屏蔽对话框增加标题Update SourceBlockDialog to show search view

Make search view visible and set its text.

* Add string for blocking source selection

* Restore 'title_block_source' string in Chinese localization

* Add title_block_source string for dialog

* Add string for blocking source types

* Update source site paths in strings.xml for zh-rCN

* Update source paths in Chinese strings

* Update source folder paths in strings.xml

* Implement auto backup and cleanup functionality

Added methods for automatic backup and cleanup of auto backup files.

* Change backup method to autoBackupOnExit in HomeActivity

* Change backup method to autoBackupOnExit

* Update SourceBlockDialog UI elements

* Add minimum height for GitHub and OCI custom views

Set minimum height for custom GitHub and OCI views and adjust focus behavior.

* Replace TextViews with MaterialButtons in dialog

Updated buttons in dialog_site_picker.xml to use MaterialButton with adjusted text size and height.

* Add site selection and notify adapter changes

Implement site selection logic in SiteDialog.

* Refactor minHeight setting to use ResUtil

* Update dialog_site_picker.xml

* Enhance SiteDialog with focus handling and cleanup

Added focus handling for active site in SiteDialog and removed old selection logic.

* Refactor focus handling in SiteDialog

* Add GitHub Proxy and OCI Mirror buttons to dialog

* Update button background resources in UpdateSettingsDialog

* Change button text colors and stroke colors

* Fix textColor attribute in dialog_site_picker.xml

* Update source URLs and folder descriptions in strings.xml

* Update strings for VOD and live URLs in Chinese

* Update folder paths in strings.xml

* Refactor UpdateSettingsDialog focus handling

Removed unnecessary focus settings and background resources for githubProxy and ociMirror.
* Refactor signature comparison in signaturesMatch method

Refactor signaturesMatch method to improve signature comparison logic for installed and archive packages.

* 修正tv版站点选择初始化焦点

* Update dialog_site.xml

* Set focusableInTouchMode to false in adapter_site.xml

Changed focusableInTouchMode attribute to false.

* Refactor view_control_vod_action layout attributes

Removed nextFocusLeft attribute from next TextView and added visibility attribute to timer TextView.

* Add PlayerFocusContainer for custom focus handling

* Replace LinearLayout with PlayerFocusContainer

* Add TIMER action button to VideoActivity

* Add TIMER constant and item to PlayerButtonSetting

* Fix target position reference in scroll listener

* Add auto backup on exit in HomeActivity

Ensure auto backup occurs when exiting HomeActivity.

* Update view_control_vod_action.xml

* Refactor focus handling in PlayerFocusContainer

* Add enableCircularHorizontal attribute to layout

* Remove pan diagnostic action update functionality

Removed updatePanDiagnosticAction method and its calls.

* Add PDS button to PlayerButtonSetting

* Make dialog focusable for user interaction

* Enable focusableInTouchMode for adapter_site layout

* Improve focus handling in SiteDialog scrolling

Refactor scrolling logic to request focus on target position with retries.

* Fix formatting issue in PlayerButtonSetting.java

* Add attrs.xml for PlayerFocusContainer attributes

* Enhance focusSearch for circular left/right navigation

Refactor focus search logic to support circular navigation.

* Enhance focus search and key event handling

Refactor focus handling for left and right navigation, enabling circular focus behavior.

* Remove placePanDiagnosticAction method

Removed the placePanDiagnosticAction method and its call from the addActionButtons method.
* 修复更新设置在tv版上的显示问题Refactor selector_light_dialog_item.xml for ripple effects

Updated the drawable selector to include ripple effects for focused and default states.

* Update dialog_update_settings.xml

* Update render calls to use post method for UI updates

* Refactor longClick method for better null handling

* Enable long click on adapter site switch layout

* Implement long click trigger in SiteAdapter

Add long click handling to prevent immediate click action.

* Add null and state checks in onDelete method

* Refactor isLongTriggered to ViewHolder

Moved isLongTriggered variable to ViewHolder for better encapsulation.

* Filter adapter after deleting site file

Modify site deletion logic to filter adapter after deletion.

* Refactor selector_light_dialog_item drawable

Updated the drawable selector for light dialog items by modifying colors and stroke properties.

* Update text color in dialog_update_settings layout

* Refactor long click handling in SiteAdapter

Replaced long click listener implementation with inline lambda to improve readability and maintainability.

* Refactor long click listener in SiteAdapter

* Change text color to black in dialog_update_settings

* Refactor SiteAdapter for key event handling

Refactor SiteAdapter to handle key events instead of click listeners. Removed long click handling and adjusted item interaction logic.

* Refactor key event handling in SiteAdapter

Refactor SiteAdapter to handle key events and improve click handling.

* Refactor item binding with long press support

Refactor bind method to use a long press handler for item actions.

* Update selector_light_dialog_item.xml

* Refactor bind method in SiteAdapter for clarity

* Add OnKeyEventListener interface for key events

* Refactor SiteDialog for improved dialog handling

Refactor SiteDialog to remove direct dialog handling and implement long press functionality for item deletion.

* Implement key event listener in SiteAdapter

Added OnKeyEventListener interface and its implementation to handle key events in SiteAdapter.

* Refactor selector_light_dialog_item.xml for layers

* Refactor site retrieval from adapter in SiteDialog

* Add listener setter and improve focus handling

Added a method to set a listener for SiteDialog and improved item focus handling in the RecyclerView.

* Refactor selector_light_dialog_item.xml for simplicity

Refactored the selector to simplify the structure and remove unnecessary layer-lists. Updated ripple effects and background shapes for improved UI consistency.

* Enhance SiteDialog event handling

Refactor event handling for site configuration and deletion.

* Implement refreshSites method in SiteAdapter

Added refreshSites method to clear and update site items.

* Enhance SiteDialog focus handling and validation

* Add click listener to SiteAdapter item view

* Add listener to SiteDialog in showDialog method

* Add long press handling to SiteDialog

* Add newline at end of SiteAdapter.java

Fix missing newline at end of SiteAdapter.java file.

* Remove unnecessary position check in key event handling

Remove check for RecyclerView.NO_POSITION before handling key down event.

* Remove key event listener functionality

Removed OnKeyEventListener interface and its usage.

* Refactor SiteDialog by removing long press handling

* Remove null check for activity in Toast message

* Refactor scrolling and focus logic in SiteDialog

* Refactor site scrolling and file deletion logic

* Refactor deleteFileSite method to simplify logic

Removed old file deletion logic and retained updated method.

* Update SiteDialog.java

* Refactor padding and focus attributes in dialog layout

* Refactor SiteDialog's scrollAndFocusActiveSite method

Refactor scrollAndFocusActiveSite method for clarity and efficiency by removing unnecessary checks and simplifying the focus logic.

* Add focusable attributes to dialog layout

* Fix formatting in dialog_site.xml layout

* Enhance SiteDialog to wait for layout on show

Added a listener to the dialog to wait for layout and focus when the list is loaded.

* Enhance site removal functionality in SiteDialog

Remove site from list and update adapter accordingly.

* Implement site removal functionality in SiteAdapter

Added removeSite method to handle site removal from lists.

* Implement removeSite method in SiteAdapter

Added a method to remove a site from the adapter and update the data accordingly.

* Refactor site deletion handling in SiteDialog

Update site removal logic to handle current home and site list.

* Enhance file deletion logic in SiteDialog

Improve file deletion handling with error feedback.

* Update toast message on delete failure

Change toast message for deletion failure in SiteDialog.

* Add failure message for site deletion in Chinese

* Add failure message for site deletion

* Add error message for site deletion failure

* Handle fallback home site on deletion

Added fallback home site handling when deleting current home site.
Removed calls to placePanDiagnosticAction and updatePanDiagnosticAction methods.
* 修复tv站点选择器长按触发单击的问题

* Remove onViewRecycled method from SiteAdapter

Removed onViewRecycled method to simplify view recycling logic.
* Update appearance summary string to reflect changes

* Update appearance summary count in Chinese strings

* Update appearance summary option count to 5

* 增加默认启动设置

Added default launch options and methods to get and put default launch settings.

* Add default launch setting functionality

* Implement startup action logic in HomeActivity

Add startup action handling in HomeActivity.

* Add default launch option in SettingFragment

* Add startup action logic in HomeActivity

Implement startup action handling in HomeActivity.

* Add default launch setting layout

* Add default launch setting layout elements

* Add default launch settings and options in Chinese

* Add default launch settings in Chinese localization

* Add default launch options to strings.xml

* 默认启动最近时全屏播放Add fullscreen start option in VideoActivity

* Simplify recent history launch in HomeActivity

* Simplify recent history video launch logic

* Add startFullscreen functionality to VideoActivity
* 修复投屏崩溃Add null check for mFlagAdapter in VideoActivity

* 修复投屏异常Add finishVideoForCast method to VideoActivity

* Modify cast event handling in HomeActivity

Handle cast events differently based on the current activity type.

* Add finishVideoForCast method in VideoActivity

Added a method to finish video playback when casting.

* Refactor onReceiveCast method for better clarity

* 修复投屏进度不同步问题Enhance cast history management in VideoActivity

Updated VideoActivity to handle cast history more effectively.

* Add cast history handling to VideoActivity
* tv播放增加推送功能Add PUSH constant and item to PlayerButtonSetting

* Add cast button and update related functionality

* Replace CAST action button with PUSH

* Enable saving default speed in VideoActivity

* 修复长按临时倍速被持久化问题Add speed management for long press actions

Store the player's speed before long press and restore it on speed end.

* Remove cast history handling from VideoActivity

Refactor VideoActivity to remove cast history handling and adjust related methods.

* Enhance VideoActivity with cast history support

Refactor VideoActivity to include cast history handling in start methods and applyCastHistory method.

* Refactor history method to simplify ID handling

* Refactor history method to simplify URL handling

* Add cast episode hint to VideoActivity

* Add episode hint handling in VideoActivity

Added mCastEpisodeHint to store episode hints from cast history. Updated seamless method to utilize mCastEpisodeHint for episode retrieval.

* Refactor history handling in ReceiveDialog

* Update dispatchCast method to use event history

* Add cast search functionality to VideoActivity

* Implement casting search feature in VideoActivity

Added functionality for casting search in VideoActivity.

* Fix missing newline at end of HomeActivity.java

Add missing newline at the end of HomeActivity.java

* Fix missing newline at end of ReceiveDialog.java

* Add retry logic for cast detail retrieval

* Enhance casting logic and retry mechanism in VideoActivity

Added mCastDetailRetry variable to manage retry attempts for casting details. Updated fullscreen logic to enter fullscreen for both startFullscreen and isCast conditions. Enhanced checkCast method to handle audio stage visibility without forcing fullscreen.

* Change text from 'play_cast' to 'push' in XML
* 重构首页布局Refactor HomeActivity to remove history features

Refactor HomeActivity to remove history-related functionality and integrate HomeMenuDialog for menu actions.

* Implement HomeMenuDialog for displaying menu items

* Refactor CustomTitleView to simplify key handling

* Add boundary listener support in FuncPresenter

* Add drawable for home history in Func.java

* Add HistoryActivity for managing viewing history

* Add HistoryAdapter for managing history items

* Create HomeMenuAdapter.java

* Update layout for activity_home.xml with new views

* Add dialog_home_menu layout XML file

* Adjust layout dimensions and padding in adapter_func.xml

* Add activity_history.xml layout file

* Add HistoryActivity to AndroidManifest

* Change '最近观看' to '历史' in strings.xml

* Update Chinese translations for home history and recommend

* Update home_recommend string in Chinese localization

* Refactor home menu item handling and recommendations

* Change funcRecycler height to 48dp and fix layout closing

* Adjust layout dimensions and padding in adapter_func.xml

* Add 'home_switch' string resource

* Add 'home_switch' string for source switching

* Add home_switch string for Chinese localization

* Fix missing newline at end of HomeActivity.java

Add missing newline at the end of HomeActivity.java

* Adjust menu items to include refresh option

* 监听菜单键

* Adjust spacing and row height in HomeActivity

* Modify padding and height in activity_home.xml

Adjusted padding and layout height for better UI alignment.

* Update adapter_func.xml

* Change horizontal spacing in funcRecycler

* Change HorizontalGridView width to 0dp with weight

* Improve key event handling in HomeActivity

Enhance key event handling for recycler visibility and focus management.

* Update layout dimensions and restructure XML elements

* Update HomeMenuAdapter to accept spanCount parameter

* Enhance HomeMenuAdapter with spanCount and navigation

Added spanCount parameter to HomeMenuAdapter to manage item layout across multiple spans. Implemented key navigation logic for RecyclerView items based on span count.

* Dynamically set funcRecycler width based on item count

Adjust the width of the funcRecycler based on the number of items in the adapter.

* Refactor layout by removing duplicate HorizontalGridView

Removed duplicate HorizontalGridView and adjusted layout.

* Adjust funcRecycler width calculation in HomeActivity

* Refactor HomeMenuDialog to extend DialogFragment

* Refactor HomeMenuAdapter to use AdapterHomeMenuBinding

* Refactor dialog_home_menu layout structure

* Add adapter_home_menu.xml layout file

* Adjust width calculation for funcRecycler

* Add key listener for menu key in HomeMenuDialog

* Update item background states in HomeMenuAdapter

* Enhance adapter_home_menu layout attributes

Added margin and clickable attributes to the layout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants