View Single Post
Old 12-01-2023, 01:52 PM   #2
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,200
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
If you don't want to run from source as Kovid suggested in the the thread you linked, you can still do this using the Action Chains plugin as follows:
  • Action Chains > Manage Modules > create > paste the code below and press OK.
    Code:
    from calibre.ebooks import BOOK_EXTENSIONS
    
    from calibre_plugins.action_chains.actions.base import ChainAction
    
    class AddExtraFormats(ChainAction):
    
        name = 'Add Extra Formats'
    
        def __init__(self, plugin_action):
            ChainAction.__init__(self, plugin_action)
            global BOOK_EXTENSIONS
            BOOK_EXTENSIONS += ['mp3','mp4'] 
    
        def run(self, gui, settings, chain):
            pass
  • Restart calibre and you should see the mp3,mp4 added to list of formats in device configuration dialog.
  • Connect to your device inside calibre, then go to Device > Configure this device > tick the boxes for mp3 and mp4 formats, after which you will be asked to restart again.
Attached Thumbnails
Click image for larger version

Name:	screen.jpg
Views:	65
Size:	77.9 KB
ID:	204998  

Last edited by capink; 12-01-2023 at 02:16 PM.
capink is offline   Reply With Quote