delete show / movie from PlexConnect

Hi

 

Is there a way to directly delete a show / movie from the PlexConnect aTV interface ?

I've searched but not been able to find one. It is possible to mark watch / unwatch but not to delete.

 

If it does not exist, this would be usefull to implement it.

 

Regards

Bruno

No, it is not possible.

Has there been any development for the file delete feature on PlexConnect?

It would be so nice to have, if there is no official delete feature is there a simple hack that someone could recommend?

PlexWeb or other supported clients are your only option. @baa already stated this basically.

Deletion of media has now been added, go grab the latest commit.

It’s turned off by default because of the inherent danger, to use it go to Settings and set “Allow deletion of media” to “Yes” after that a new “Delete” item will be available in the context menus when you hold select on an item. This works for Movies, Entire Shows, Seasons and individual Episodes.

Please be careful with this feature… With great power, comes great responsibility. If you delete an entire TV Show when you only wanted to delete a single episode, well that’s on you :smiley:

@roidy said:
Deletion of media has now been added, go grab the latest commit.

It’s turned off by default because of the inherent danger, to use it go to Settings and set “Allow deletion of media” to “Yes” after that a new “Delete” item will be available in the context menus when you hold select on an item. This works for Movies, Entire Shows, Seasons and individual Episodes.

Please be careful with this feature… With great power, comes great responsibility. If you delete an entire TV Show when you only wanted to delete a single episode, well that’s on you :smiley:

So, this isn’t working for me on my ATV2. The screen just flashes and the file remains. Does this feature require a specific version of PMS to work? I’m stuck on PMS 0.9.16.6 because they’ve dropped support for OS X 10.6.8.

Umm… not sure if older versions of PMS allow you to delete files. Does your PMS have the “Allow media deletion” setting and is it checked?

@roidy said:
Umm… not sure if older versions of PMS allow you to delete files. Does your PMS have the “Allow media deletion” setting and is it checked?

Yes, the PMS version I have (which was released only a month ago or so) has that delete option available and it is enabled.

When I try to delete a video file in PlexConnect, the screen flashes briefly and then returns with the unwanted file still there.

The PMS log shows the following:

Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Request: [192.168.2.102:54584] DELETE /library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (4 live) TLS GZIP
Jun 26, 2016 10:52:31 [0x118581000] DEBUG - Completed: [192.168.2.102:54584] DELETE /library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (4 live) TLS GZIP 3ms 347 bytes 400
Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Request: [192.168.2.100:58714] GET /library/metadata/35558/allLeaves (5 live) TLS
Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - It took 0.0 sec to serialize a list with 19 elements.
Jun 26, 2016 10:52:31 [0x1189ad000] DEBUG - Completed: [192.168.2.100:58714] GET /library/metadata/35558/allLeaves (5 live) TLS 24ms 25071 bytes 200
Jun 26, 2016 10:52:32 [0x119416000] VERBOSE - Statistics: (Apple TV) Reporting 25071 bytes for account 1 on LAN: 1

Here is the PlexConnect.log.

Here is my Settings.cfg. Maybe there is something wrong in it:

[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.2.100
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 64.59.144.93
prevent_atv_update = True
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.2.100
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = High
logpath = .

Umm… strange, the PMS log clearly shows the DELETE request is received but the file isn’t deleted.

Ok, I think I see the problem, the url is malformed:-

/library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
the & should be a ? like so.
/library/metadata/37299?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx

Could you replace the utils.js file in the /PlexConnect/assets/js directory with this one, and let me know if it works:-

NOTE:- You’ll need to remove the .txt extension so the file is just utils.js, I can’t attach a js file to the forum.

@roidy said:
Ok, I think I see the problem, the url is malformed:-

/library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
the & should be a ? like so.
/library/metadata/37299?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx

Could you replace the utils.js file in the /PlexConnect/assets/js directory with this one, and let me know if it works:-

NOTE:- You’ll need to remove the .txt extension so the file is just utils.js, I can’t attach a js file to the forum.

roidy,

Thanks so much, that seems to have fixed it. The Delete function is working now.

Line 74 of the old util.js file was if (accessToken!='') url = url + '&X-Plex-Token=' + accessToken; Is that “&” a typo?

Yep, the & should be a ? question mark. I’ll push the changes to GitHub now you’ve confirmed it works, thanks.

Hi !
Coming back to my topic !
Tried to pull the last github commit this morning, and still having the wrong utils.js file (the one with the & and not the ?)
version I have : 0.5-dev-110616
obtained through “https://github.com/iBaa/PlexConnect” -> Download.
Strange thing is that Roidy correction appears in the history but the wrong file is still there.

Second pull was OK, will try this evening.
Bruno

I am afraid it is not working for me :

Apple TV 3 - 6.2
Plex Connect 0.5-dev-110616
PMS 1.0.0.2261

utils.js contains the following lines :

/*

  • Delete an item from the library
    */
    function deleteItem(PMS_baseURL, accessToken, ratingKey)
    {
    var url = PMS_baseURL + “/library/metadata/” + ratingKey;
    if (accessToken!=’’) url = url + ‘?X-Plex-Token=’ + accessToken;

    var req = new XMLHttpRequest();
    req.open(‘DELETE’, url, false);
    req.send();
    }

In fact I don’t even have a menu proposing deletion. Menu contains possibility to mark watch/unwatch, to change fanart and another one I do not remember, but no choice for deletion

Something I am missing ?

Bruno

@bberu said:
In fact I don’t even have a menu proposing deletion. Menu contains possibility to mark watch/unwatch, to change fanart and another one I do not remember, but no choice for deletion

Something I am missing ?

Bruno

You have to enable the feature in PlexConnect’s settings and on the PMS. Then the menu option will appear.

Indeed, it works far better with the option set into PlexConnect parameters…

Hello, I also have the problem of not finding the delete option in the PlexConnect drop down menu on my ATV3.

Can anyone please tell me were I have goofed up? /:slight_smile:

I get only the following options:

  1. Make as Watched
  2. Mark as Unwatched
  3. Change Poster
  4. Change Fanart

Currently running Version 0.5 dev / Commit Date 24 May 2015

I have the ‘Allow media deletion’ option selected in PMS (Version 1.3.2.3112)

However I cannot find any option for delete media in the PlexConnect settings…

Everything working good now, just updated to PlecConnect 0.5-dev-110616

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