mytunes-pro 1.9.3__py3-none-any.whl → 1.9.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mytunes/app.py CHANGED
@@ -17,6 +17,7 @@ import socket
17
17
  import locale
18
18
  import signal
19
19
  import warnings
20
+ import webbrowser
20
21
  # Suppress urllib3 warning about LibreSSL compatibility
21
22
  warnings.filterwarnings("ignore", message=".*urllib3 v2 only supports OpenSSL 1.1.1+.*")
22
23
  import webbrowser
@@ -35,7 +36,7 @@ MPV_SOCKET = "/tmp/mpv_socket"
35
36
  LOG_FILE = "/tmp/mytunes_mpv.log"
36
37
  PID_FILE = "/tmp/mytunes_mpv.pid"
37
38
  APP_NAME = "MyTunes Pro"
38
- APP_VERSION = "1.9.3"
39
+ APP_VERSION = "1.9.4"
39
40
 
40
41
  # === [Strings & Localization] ===
41
42
  STRINGS = {
@@ -765,20 +766,23 @@ class MyTunesApp:
765
766
  self.show_copy_dialog("Live Station", live_url)
766
767
  return
767
768
 
768
- # v1.9.2 - Critical WSL Fix: Disable Profile Isolation
769
- # Executing cmd.exe or managing paths in WSL has proven unstable due to environment differences.
770
- # We explicitly DISABLE profile isolation in WSL, using the default Chrome profile data.
771
- # This ensures stability at the cost of session isolation.
769
+ # v1.9.4 - Ultimate WSL Fix: Use Standard Webbrowser Module
770
+ # Subprocess/cmd.exe based launching in WSL is unstable.
771
+ # We switch to the standard `webbrowser` module which handles system default browser reliably.
772
+ # This sacrifices window sizing but guarantees the URL opens.
772
773
  if self.is_wsl():
773
- temp_user_data = None
774
- else:
775
- temp_user_data = os.path.join(tempfile.gettempdir(), f"mytunes_v190_{int(time.time() / 10)}")
774
+ threading.Thread(target=webbrowser.open, args=(live_url,), daemon=True).start()
775
+ return
776
+
777
+ # Native (Mac/Windows/Linux) Logic Continues Below...
778
+ temp_user_data = os.path.join(tempfile.gettempdir(), f"mytunes_v190_{int(time.time() / 10)}")
776
779
 
777
780
  # Optimized Flag Set (Context7 Research)
778
781
  flags = [
779
782
  f"--app={live_url}",
780
783
  "--window-size=712,800",
781
784
  "--window-position=100,100",
785
+ f"--user-data-dir={temp_user_data}",
782
786
  "--no-first-run",
783
787
  "--no-default-browser-check",
784
788
  "--disable-default-apps",
@@ -791,10 +795,6 @@ class MyTunesApp:
791
795
  "--disable-extensions"
792
796
  ]
793
797
 
794
- # Only add user-data-dir if we have a valid path (Non-WSL)
795
- if temp_user_data:
796
- flags.append(f"--user-data-dir={temp_user_data}")
797
-
798
798
  launched = False
799
799
  # v1.8.4 - Subprocess Isolation (start_new_session) to prevent crashes on WSL/Linux
800
800
  # 1. macOS
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mytunes-pro
3
- Version: 1.9.3
3
+ Version: 1.9.4
4
4
  Summary: A lightweight, keyboard-centric terminal player for streaming YouTube music.
5
5
  Author-email: loxo <loxo5432@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/postgresql-co-kr/mytunes
@@ -19,7 +19,7 @@ Dynamic: license-file
19
19
 
20
20
  # 🎵 MyTunes Pro (Korean)
21
21
 
22
- **현대적인 CLI 유튜브 뮤직 플레이어 (v1.9.3)**
22
+ **현대적인 CLI 유튜브 뮤직 플레이어 (v1.9.4)**
23
23
  터미널 환경에서 **YouTube 음악을 검색하여 듣는** 가볍고 빠른 키보드 중심의 플레이어입니다.
24
24
  한국어 입력 환경에서도 **숫자 키(1~5)**를 통해 지연 없는 쾌적한 조작이 가능합니다.
25
25
 
@@ -208,7 +208,7 @@ Windows 환경에서 한글 검색이 안 되거나 설치가 어려운 분들
208
208
 
209
209
  # 🎵 MyTunes Pro (English)
210
210
 
211
- **Modern CLI YouTube Music Player (v1.9.3)**
211
+ **Modern CLI YouTube Music Player (v1.9.4)**
212
212
  A lightweight, keyboard-centric terminal player for streaming YouTube music.
213
213
 
214
214
  ---
@@ -296,7 +296,11 @@ sudo apt install mpv python3 python3-pip pipx python3-venv -y
296
296
 
297
297
  ## 🔄 Changelog
298
298
 
299
- ### v1.9.3 (Hotfix)
299
+ ### v1.9.4 (Latest)
300
+
301
+ - **Ultimate WSL Fix**: Switched to using Python's standard `webbrowser` module for opening links in WSL. This fully delegates browser launching to the system (Windows host), ensuring maximum stability and eliminating all `subprocess` or `cmd.exe` related conflicts.
302
+
303
+ ### v1.9.3
300
304
 
301
305
  - **Hotfix for Startup**: Fixed a syntax error introduced in v1.9.2 that prevented the application from starting.
302
306
 
@@ -0,0 +1,8 @@
1
+ mytunes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mytunes/app.py,sha256=9qM1blYaDozAHFHk83xfZ2qg_Ijc4BgFY5KNM4VN9Us,60877
3
+ mytunes_pro-1.9.4.dist-info/licenses/LICENSE,sha256=lOrP0EIjxcgJia__W3f3PVDZkRd2oRzFkyH2g3LRRCg,1063
4
+ mytunes_pro-1.9.4.dist-info/METADATA,sha256=hxsZZRaOEmZy7i8duKAC3IjWxtHMZytMsekV4jhx-b8,19834
5
+ mytunes_pro-1.9.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ mytunes_pro-1.9.4.dist-info/entry_points.txt,sha256=6-MsC13nIgzLvrREaGotc32FgxHx_Iuu1z2qCzJs1_4,65
7
+ mytunes_pro-1.9.4.dist-info/top_level.txt,sha256=KWzdFyNNG_sO7GT83-sN5fYArP4_DL5I8HYIwgazXyY,8
8
+ mytunes_pro-1.9.4.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- mytunes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mytunes/app.py,sha256=MNnNKbPLBfuEfkfJ_S0G-j_3n0s5pkI99GsOinwrp-0,60887
3
- mytunes_pro-1.9.3.dist-info/licenses/LICENSE,sha256=lOrP0EIjxcgJia__W3f3PVDZkRd2oRzFkyH2g3LRRCg,1063
4
- mytunes_pro-1.9.3.dist-info/METADATA,sha256=fef3gK31RAtSKUV99CkGzMWnnoVkyyvrp558wccHysE,19554
5
- mytunes_pro-1.9.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
- mytunes_pro-1.9.3.dist-info/entry_points.txt,sha256=6-MsC13nIgzLvrREaGotc32FgxHx_Iuu1z2qCzJs1_4,65
7
- mytunes_pro-1.9.3.dist-info/top_level.txt,sha256=KWzdFyNNG_sO7GT83-sN5fYArP4_DL5I8HYIwgazXyY,8
8
- mytunes_pro-1.9.3.dist-info/RECORD,,