Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to get a removable disc type in drive
Post: RE: How to get a removable disc type in drive

(Feb-08-2024, 06:35 AM)Gribouillis Wrote: (Feb-08-2024, 05:56 AM)Daring_T Wrote: Also here is what a blue-ray looks like with running dict(dev.properties):The property ID_CDROM_MEDIA_BD tells you ...
Daring_T General Coding Help 12 970 Feb-11-2024, 07:39 AM
    Thread: How to get a removable disc type in drive
Post: RE: How to get a removable disc type in drive

(Feb-08-2024, 06:35 AM)Gribouillis Wrote: (Feb-08-2024, 05:56 AM)Daring_T Wrote: Also here is what a blue-ray looks like with running dict(dev.properties):The property ID_CDROM_MEDIA_BD tells you ...
Daring_T General Coding Help 12 970 Feb-09-2024, 05:48 AM
    Thread: How to get a removable disc type in drive
Post: RE: How to get a removable disc type in drive

(Feb-07-2024, 01:32 PM)Gribouillis Wrote: (Feb-07-2024, 03:34 AM)Daring_T Wrote: I am not seeing a way to see the disc's type.I had some success on my linux computer with the command Output:udeva...
Daring_T General Coding Help 12 970 Feb-08-2024, 05:56 AM
    Thread: How to get a removable disc type in drive
Post: RE: How to get a removable disc type in drive

(Feb-07-2024, 07:48 AM)Pedroski55 Wrote: Looks like a job for dd! Since you will have to place the discs in by hand, I presume, you know what it is and the title. Have a look here for how to do th...
Daring_T General Coding Help 12 970 Feb-08-2024, 05:27 AM
    Thread: How to get a removable disc type in drive
Post: RE: How to get a removable disc type in drive

(Feb-06-2024, 11:15 AM)Danishhafeez Wrote: (Feb-06-2024, 05:45 AM)Daring_T Wrote: I am currently working on a program to automate ripping and backing my collection of CDs, DVDs and Blue-rays. I am...
Daring_T General Coding Help 12 970 Feb-07-2024, 03:34 AM
    Thread: How to get a removable disc type in drive
Post: RE: How to get a removable disc type in drive

(Feb-06-2024, 09:01 AM)Gribouillis Wrote: (Feb-06-2024, 05:45 AM)Daring_T Wrote: I am currently running into an issue where I need to be able to find the type of disc in the driveI'd say first fin...
Daring_T General Coding Help 12 970 Feb-07-2024, 03:23 AM
  Question Thread: How to get a removable disc type in drive
Post: How to get a removable disc type in drive

I am currently working on a program to automate ripping and backing my collection of CDs, DVDs and Blue-rays. I am currently running into an issue where I need to be able to find the type of disc in t...
Daring_T General Coding Help 12 970 Feb-06-2024, 05:45 AM
    Thread: Controlling what get outputted to stdout when running external commands
Post: RE: Controlling what get outputted to stdout when ...

(Jan-29-2022, 07:21 PM)bowlofred Wrote: I wonder if some of this is because the console is getting both stdin and stderr. If you run handbrake [options....] > /dev/null do you get the output you...
Daring_T General Coding Help 4 2,111 Jan-30-2022, 04:06 PM
    Thread: Controlling what get outputted to stdout when running external commands
Post: RE: Controlling what get outputted to stdout when ...

Here is the output of the parsing code above and the control as well. I am trying to get the output to should look like this so I can manipulate it further. Output:Progress: 0.60 Progress: 0.12 Progr...
Daring_T General Coding Help 4 2,111 Jan-29-2022, 06:17 PM
    Thread: Controlling what get outputted to stdout when running external commands
Post: Controlling what get outputted to stdout when runn...

I am using Python to compress video files via Handbrake and subprocess. When I run my current code the HandbrakeCli output still outputs to stdout. Is there a better way to contain and control the out...
Daring_T General Coding Help 4 2,111 Jan-27-2022, 04:20 AM
    Thread: How to parse a live feed in Python?
Post: RE: How to parse a live feed in Python?

(Jan-18-2022, 05:26 AM)bowlofred Wrote: You're not showing how you're calling subprocess. subprocess.run is the easy way, but waits for the process to exit. If you want to read from stdout before ...
Daring_T General Coding Help 2 3,963 Jan-20-2022, 04:17 AM
    Thread: How to parse a live feed in Python?
Post: How to parse a live feed in Python?

I am using the subprocess.run() to run handbrakecli to compress a media folder. Whenever I run the command I get a live data feed every 1/2 second in my output. Is there a way to capture the live stdo...
Daring_T General Coding Help 2 3,963 Jan-18-2022, 04:07 AM
    Thread: Homework( Solution found)
Post: RE: Homework( Solution found)

I am not exactly sure on the matter of input? Is it only 7 numbers? Here are two different versions of what I think they're asking for. # This version finds how many 0's out each iteration of the loo...
Daring_T Homework 2 1,788 Dec-23-2021, 01:54 AM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: RE: How would I use Watchdog to get triggered when...

(Aug-17-2021, 08:15 AM)DeaD_EyE Wrote: I think you can't use the Watchdog to observe media Changes. Polling the directory the whole time is ineffective and if a CD is in your drive, it will always s...
Daring_T General Coding Help 12 4,623 Aug-17-2021, 01:49 PM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: RE: How would I use Watchdog to get triggered when...

(Aug-16-2021, 08:50 PM)deanhystad Wrote: Is the DVD going to show up as D: or does it show up in D:? If it shows up as D: I don't think you can use watchdog to see when a DVD is installed. Sure, y...
Daring_T General Coding Help 12 4,623 Aug-17-2021, 03:58 AM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: RE: How would I use Watchdog to get triggered when...

(Aug-16-2021, 07:24 PM)jefsummers Wrote: This is how I would do the try except failed = True while failed: try: observer.start() failed = False except: wait(5)Is that...
Daring_T General Coding Help 12 4,623 Aug-17-2021, 03:29 AM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: RE: How would I use Watchdog to get triggered when...

I have tried using a try except block but still get the same error. I have even tried putting a 10 sec sleep time but it don’t help.
Daring_T General Coding Help 12 4,623 Aug-15-2021, 06:22 PM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: RE: How would I use Watchdog to get triggered when...

(Aug-15-2021, 12:27 PM)jefsummers Wrote: Looks like the error starts in line 45 which is not supplied.I just fixed my traceback error. The traceback should now line up with the test script.
Daring_T General Coding Help 12 4,623 Aug-15-2021, 03:21 PM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: RE: How would I use Watchdog to get triggered when...

This happens when a DVD is not inserted and I want Watchdog to wait until a DVD is inserted then run my main function. This is the complete traceback error: Error:Traceback (most recent call last): ...
Daring_T General Coding Help 12 4,623 Aug-14-2021, 03:01 PM
    Thread: How would I use Watchdog to get triggered when DVD is inserted?
Post: How would I use Watchdog to get triggered when DVD...

I am making a DVD ripping script and I am trying to use the Watchdog Lib to trigger my main function. The problem is, I'm getting this error: Error:PermissionError: [WinError 21] The device is not rea...
Daring_T General Coding Help 12 4,623 Aug-14-2021, 12:09 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020