Enable python prints in scanner?

Is it possible to get the prints to show up in the system console?



I just added a print in the Scan method:



def Scan(path, files, mediaList, subdirs):<br />
  print "SCAN NOW"<br />
......



Doesn't show anything in the Console, which makes it hard to debug

Use Log() instead.

Log() is a plug-in framework function - these aren’t available in the scanners.



Have you checked the “Plex Media Scanner.log” file (in ~/Library/Logs) to see if the prints end up in there?



Thanks for the lead, but can't find any output from the python script, only other output defined in PMS i guess

you need to look in Console Message at the top of the sidepane in Console and use print.

pretty sure standard prints should work, i can see the stock plex scanners using them in some places, but it doesn’t look like they show up in the log, to see them run plex media scanner in a terminal. (verbose mode is -v if that helps you too, though for me the prints are showing without it)

Make sure you are looking at the console.app, not the terminal. And AFAIK you have to add a new section to trigger the scan. lots of add section remove section in the debug cycle!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.