fuo-qqmusic 1.0.8__tar.gz → 1.0.9__tar.gz

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.

Potentially problematic release.


This version of fuo-qqmusic might be problematic. Click here for more details.

Files changed (21) hide show
  1. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/PKG-INFO +1 -1
  2. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/README.md +3 -0
  3. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/provider_ui.py +12 -4
  4. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic.egg-info/PKG-INFO +1 -1
  5. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/setup.py +1 -1
  6. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/__init__.py +0 -0
  7. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/api.py +0 -0
  8. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/assets/icon.svg +0 -0
  9. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/consts.py +0 -0
  10. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/excs.py +0 -0
  11. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/login.py +0 -0
  12. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/provider.py +0 -0
  13. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic/schemas.py +0 -0
  14. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic.egg-info/SOURCES.txt +0 -0
  15. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic.egg-info/dependency_links.txt +0 -0
  16. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic.egg-info/entry_points.txt +0 -0
  17. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic.egg-info/requires.txt +0 -0
  18. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/fuo_qqmusic.egg-info/top_level.txt +0 -0
  19. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/setup.cfg +0 -0
  20. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/tests/test_api.py +0 -0
  21. {fuo_qqmusic-1.0.8 → fuo_qqmusic-1.0.9}/tests/test_provider.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fuo_qqmusic
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: feeluown qqmusic plugin
5
5
  Home-page: https://github.com/feeluown/feeluown-qqmusic
6
6
  Author: Cosven
@@ -20,6 +20,9 @@ pip3 install fuo-qqmusic
20
20
  [操作示例](https://github.com/feeluown/feeluown-qqmusic/issues/6)。
21
21
 
22
22
  ## changelog
23
+ ### 1.0.9 (2025-07-24)
24
+ - 增加“重新登录”按钮(仅 FeelUOwn>=4.1.14 可用)
25
+
23
26
  ### 1.0.8 (2025-07-03)
24
27
  - 增强 web 登录可靠性
25
28
  - 歌单支持添加/删除歌曲
@@ -1,16 +1,15 @@
1
- import json
2
1
  import logging
3
2
  import os
4
3
 
4
+ from PyQt5.QtWidgets import QMenu
5
+
5
6
  from feeluown.utils.dispatch import Signal
6
7
  from feeluown.utils.aio import run_fn
7
- from feeluown.consts import DATA_DIR
8
8
  from feeluown.gui.widgets.login import CookiesLoginDialog, InvalidCookies
9
9
  from feeluown.gui.provider_ui import AbstractProviderUi
10
10
  from feeluown.app.gui_app import GuiApp
11
11
 
12
12
  from .provider import provider
13
- from .excs import QQIOError
14
13
  from .login import read_cookies, write_cookies
15
14
 
16
15
  logger = logging.getLogger(__name__)
@@ -29,7 +28,7 @@ class ProviderUI(AbstractProviderUi):
29
28
  return os.path.join(os.path.dirname(__file__), 'assets', 'icon.svg')
30
29
 
31
30
  def login_or_go_home(self):
32
- if provider._user is None:
31
+ if not provider.has_current_user():
33
32
  # According to #14, we have two ways to login:
34
33
  # 1. the default way, as the code shows
35
34
  # 2. a way for VIP user(maybe):
@@ -53,10 +52,19 @@ class ProviderUI(AbstractProviderUi):
53
52
  def login_event(self):
54
53
  return self._login_event
55
54
 
55
+ def context_menu_add_items(self, menu: QMenu):
56
+ action = menu.addAction('重新登录')
57
+ action.triggered.connect(self._re_login)
58
+
56
59
  def on_login_succeed(self):
57
60
  del self._dialog
58
61
  self.login_event.emit(self, 1)
59
62
 
63
+ def _re_login(self):
64
+ provider.auth(None)
65
+ self.login_or_go_home()
66
+
67
+
60
68
 
61
69
  class LoginDialog(CookiesLoginDialog):
62
70
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fuo_qqmusic
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: feeluown qqmusic plugin
5
5
  Home-page: https://github.com/feeluown/feeluown-qqmusic
6
6
  Author: Cosven
@@ -5,7 +5,7 @@ from setuptools import setup
5
5
 
6
6
  setup(
7
7
  name='fuo_qqmusic',
8
- version='1.0.8',
8
+ version='1.0.9',
9
9
  description='feeluown qqmusic plugin',
10
10
  author='Cosven',
11
11
  author_email='yinshaowen241@gmail.com',
File without changes