Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-09 Thread Clayton Macleod
Re: sending to your personal email, yet again another reason mailing lists are stupid. At least back in the day mailing lists were smart enough to only send me emails from the mailing list itself, so when you hit reply it only replied to the mailing list itself. This mailing list is sending me ma

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-09 Thread Jeremy Nicoll
On Wed, 8 Mar 2023, at 22:28, Clayton Macleod wrote: > Yes, you can alter live playlists at any time in the app itself. Something else (maybe not a welcome suggestion on a Python list, though)... I just found this list of VBS scripts for interacting with iTunes: https://samsoft.org.uk/iTun

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-09 Thread Jeremy Nicoll
On Wed, 8 Mar 2023, at 22:28, Clayton Macleod wrote: > On Wed, Mar 8, 2023 at 5:34 AM Jeremy Nicoll > wrote: Please stop sending me private copies of your replies. I can easily read them on the mail list itself. >> I also wondered just how often your add/deletes failed? Are you adding a >>

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-08 Thread Clayton Macleod
On Wed, Mar 8, 2023 at 5:34 AM Jeremy Nicoll wrote: > Remembering that I don't use iTunes ... I wondered if the iTunes > application > (when you use it via its GUI) supports dynamic changes to a playlist when > that playlist is being played? > > Yes, you can alter live playlists at any time in th

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-08 Thread Jeremy Nicoll
On Fri, 3 Mar 2023, at 22:55, Clayton Macleod wrote: > It doesn't really matter whether or not the playlist exists already. That > doesn't have anything to do with the issue. > > Everything works great until I make that delete call. That's not what you said at the start. Then, you said it

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Clayton Macleod
Ah, ok. Thanks for the info. So it sounds like iTunes may be doing something weird then. And thanks for your time. Have a good one.--Clayton MacleodIf no one comes from the future to stop you from doing it, then how bad of a decision can it really be?On Mar 6, 2023, at 9:09 PM, Mark Hammond wrote:

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Mark Hammond
Your script is using itunes via COM - https://learn.microsoft.com/en-us/windows/win32/com. Many many apps expose APIs via COM, so almost all languages can use them in some way. When you reference song.Name, COM defines how Python asks itunes for a "name" property on a "songs" object. Mark On

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Clayton Macleod
Perhaps I’m misunderstanding how those things work then. If I print song.Name that isn’t simply printing from the script’s own data? That’s what I thought to be happening. It is instead calling upon the iTunes app to get song.Name at print time? -- Clayton Macleod If no one comes from the futur

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Mark Hammond
On 4/03/2023 9:55 am, Clayton Macleod wrote: Sorry, forgot to hit reply all.  Been many years since I've used mailing lists, and I'm surprised anyone still does.  Heh.  Anyway... Perhaps this isn't very clear. I've found a case where the pywin32 COM library is causing data corruption I'm sor

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-04 Thread Clayton Macleod
Sorry, forgot to hit reply all. Been many years since I've used mailing lists, and I'm surprised anyone still does. Heh. Anyway... Perhaps this isn't very clear. I've found a case where the pywin32 COM library is causing data corruption and I'm trying to make a bug report. I'm not having troubl

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-03 Thread Jeremy Nicoll
Why did you not reply to the list where other people could see your reply? On Fri, 3 Mar 2023, at 16:46, Clayton Macleod wrote: > Well, the first thing I do is grab a list of the entire song library. Then > I create a playlist. The code says it uses an existing playlist unless it doesn't exist.

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-03 Thread Jeremy Nicoll
On Thu, 2 Mar 2023, at 22:33, Clayton Macleod wrote: > I pared the script down so that the only things it was doing was connecting > to iTunes to get the song library list and then doing a loop where it > printed song.Name for random entries 1,000 times using "try" so it would > continue if there

[python-win32] possible data corruption when deleting iTunes playlist items

2023-03-02 Thread Clayton Macleod
I've got a small script to create/maintain a randomized rolling 25-song playlist in iTunes which emulates some of the behaviour of an iTunes feature called Party Shuffle or iTunes DJ, which was removed from the iTunes app year ago. I've got its playback behaviour figured out and working except I se