Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2023, 06:49 PM   #886
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
Also the path is meant to be inside the single quotes.
Not sure what you mean, it is inside single quotes

Code:
job_spy_notes_viewer_protocol_default_apps = {'http': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'}
Added: the path works from the command line (in double quotes)

BR

Last edited by BetterRed; 03-19-2023 at 07:19 PM.
BetterRed is offline   Reply With Quote
Old 03-19-2023, 07:20 PM   #887
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
The windows double-quotes go inside the python dict single quotes.

However, as the image says, NV will fix itfor you. Ditto with the / \ .

So, something else is wrong. Run in debug like the images shows and see what is going on.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 07:35 PM   #888
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Please post what you think the JS plugin tweak should be for Edge in a code box so that I can cut and paste.

BR
BetterRed is offline   Reply With Quote
Old 03-19-2023, 07:41 PM   #889
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Post the debug log.

xxx = {'http:' : '"...."'} where '" is ' " .
DaltonST is offline   Reply With Quote
Old 03-19-2023, 07:49 PM   #890
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
Post the debug log.

xxx = {'http:' : '"...."'} where '" is ' " .
ApplicationPaletteChange event ignored
Using calibre Qt style: True
calibre Debug log
calibre 6.14.1 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_AU
Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 218) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2)
calibre 6.14.1 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_AU
Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 218) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2)
QPA platform: windows
devicePixelRatio: 1.25
logicalDpi: 96.0 x 96.0
physicalDpi: 98.70815939278937 x 98.85405405405406
[0.00] Starting up...
[0.00] Initializing db...
[0.02] db initialized
[0.02] Constructing main UI...
CalibreSpy: initialization_complete
Job Spy has begun initialization...
author_sort_copy_method >>> default tweaks.py method is: invert
current tweaks['title_series_sorting']: library_order
--->>>apply_title_series_sorting_by_library: libname is NOT tweaked; default value used for: Test is: library_order
title_series_sorting changed FROM: library_order TO: library_order
Calibre, and hence Job Spy, was gracefully shut down last time? True
Last time daemon started: never
Last time daemon failed: never
Total daemon starts inception_to_date: 0
Total daemon failures inception-to-date: 0
JS: ===>>> change_gui_alternating_row_colors()
Job Spy has finished initialization...
[1.25] main UI initialized...
[1.25] Started up in 1.25 seconds with 76 books
Starting QuickView
BetterRed is offline   Reply With Quote
Old 03-19-2023, 07:51 PM   #891
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Please post the plugin tweak for Edge that works for you in a form that I can copy and paste.
BetterRed is offline   Reply With Quote
Old 03-19-2023, 08:11 PM   #892
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
I am on my phone, not pc.

You did not click the link; the debug log shows it wasn't.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 08:25 PM   #893
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
I am on my phone, not pc.
gotcha

Quote:
Originally Posted by DaltonST View Post
You did not click the link; the debug log shows it wasn't.
Pretty sure I did click it, but to make sure just did it again (result in screenshot - firefox) - I installed this version job_spy_dev_202003194pmCST.zip.

Spoiler:
ApplicationPaletteChange event ignored
Using calibre Qt style: True
calibre Debug log
calibre 6.14.1 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_AU
Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 218) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2)
calibre 6.14.1 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_AU
Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 218) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2)
QPA platform: windows
devicePixelRatio: 1.25
logicalDpi: 96.0 x 96.0
physicalDpi: 98.70815939278937 x 98.85405405405406
[0.00] Starting up...
[0.00] Initializing db...
[0.02] db initialized
[0.02] Constructing main UI...
CalibreSpy: initialization_complete
Job Spy has begun initialization...
author_sort_copy_method >>> default tweaks.py method is: invert
current tweaks['title_series_sorting']: library_order
--->>>apply_title_series_sorting_by_library: libname is NOT tweaked; default value used for: Test is: library_order
title_series_sorting changed FROM: library_order TO: library_order
Calibre, and hence Job Spy, was gracefully shut down last time? True
Last time daemon started: never
Last time daemon failed: never
Total daemon starts inception_to_date: 0
Total daemon failures inception-to-date: 0
JS: ===>>> change_gui_alternating_row_colors()
Job Spy has finished initialization...
[1.27] main UI initialized...
[1.28] Started up in 1.28 seconds with 76 books
Starting QuickView
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2023-03-20 111728.jpg
Views:	251
Size:	196.1 KB
ID:	200492  
BetterRed is offline   Reply With Quote
Old 03-19-2023, 08:37 PM   #894
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Checked __init__.py in the calibre\plugins folder, seems to be the right one

Code:
# -*- coding: utf-8 -*-
__license__   = 'GPL v3'
__copyright__ = '2016,2017,2018,2019,2020,2021,2022,2023 DaltonST'
__my_version__ = "1.0.219"  # Notes Viewer:  Dark Mode & Overriding apps used with HTTP or HTTPS protocols for links in HTML text.
#~ zzzzzzz unreleased zzzzzzzzzzzzz
BR
BetterRed is offline   Reply With Quote
Old 03-19-2023, 10:14 PM   #895
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
NV's debug log is totally missing, so NV was not run.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 10:23 PM   #896
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
NV's debug log is totally missing, so NV was not run.
Click image for larger version

Name:	Screenshot 2023-03-20 131722.jpg
Views:	251
Size:	65.2 KB
ID:	200493

The ants around MR Home Page appear after it's clicked.

BR
BetterRed is offline   Reply With Quote
Old 03-19-2023, 10:30 PM   #897
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
New JS Zip used to create debug log showing url click in NV

Tweaks for plugins: I just used this:

job_spy_notes_viewer_protocol_default_apps = {'http:': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'}


which was automatically corrected by NV as the documentation for the protocol override states.

The bottom of the NV Debug Log:


Quote:
--->>> best guess: html

#~ Calibre > Preferences > Plugin Tweaks > job_spy_notes_viewer_protocol_default_apps = {'http:': '"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"'}
#~ Note that path to executable should be in Python path format (i.e., / not \), and Windows paths require double-quotes if there are any spaces in a path. However, NV will fix both if the user does not do it.


event_anchorclicked: PyQt6.QtCore.QUrl('http://www.w3schools.com/')
url to be opened: http://www.w3schools.com/
Corrected if needed: app + ' ' + url = appurl: "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" http://www.w3schools.com/
event_anchorclicked: p_pid = subprocess.Popen(appurl, shell=True): "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" http://www.w3schools.com/

Last edited by DaltonST; 03-20-2023 at 11:21 AM. Reason: zip removed due to official release.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 10:51 PM   #898
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Nope - I'm going to try a fresh d/l and install of calibre portable.
BetterRed is offline   Reply With Quote
Old 03-19-2023, 11:00 PM   #899
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Calibre portable? I never tested it on portable, so I have no idea if it works identically as far as debugging goes.

DaltonST
DaltonST is offline   Reply With Quote
Old 03-19-2023, 11:19 PM   #900
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
NV on Portable

So, I just downloaded Calibre Portable, installed JS, ran in debug mode, ran NV, clicked links, etc., and NO debug log for JS at all. Debugging is worthless in Portable.

Also, on Windows 11 desktop Calibre, clicking a link to a .txt file causes my default .txt app to open; in Portable, it does not. Also, MS Edge does not open, but Firefox does instead.

Your testing NV on Portable is of questionable utility.


DaltonST
DaltonST is offline   Reply With Quote
Reply

Tags
author aka, author pen name, colors, toolbag, toolbox, tools


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 514 03-23-2025 10:26 AM
[GUI Plugin] Ex Libris AlPe Plugins 87 10-10-2020 03:10 PM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
Ubuntu/Linux : Command to schedule a job with Calibre.( No GUI ) DurgaPrasad Calibre 0 10-16-2013 06:50 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 03:13 PM.


MobileRead.com is a privately owned, operated and funded community.