# Problem with EpisodeObject and Video URL

**URL:** https://forums.plex.tv/t/problem-with-episodeobject-and-video-url/62007
**Category:** Dev/API Corner
**Tags:** plugin-dev
**Created:** [March 29, 2014, 6:05pm UTC](https://forums.plex.tv/t/problem-with-episodeobject-and-video-url/62007 "2014-03-29T18:05:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![busa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/busa/32/81158_2.png) [@busa](https://forums.plex.tv/u/busa)
#### Post date: [March 29, 2014, 6:05pm UTC](https://forums.plex.tv/t/problem-with-episodeobject-and-video-url/62007/1 "2014-03-29T18:05:47Z")

</div>

Hi @ all

&nbsp;

I'm trying to fix the SFR.tv Plugin, but i'm not able to get the Videos play in Plex :-(

&nbsp;

There are two URLs per Item on the WebPage for the same Video:

&nbsp;

URL 1 witch is a Standalone Player:

[http://www.srf.ch/player/tv/popupvideoplayer?id=abe97246-f3fa-4828-aec0-1f32d50e9f80](http://www.srf.ch/player/tv/popupvideoplayer?id=abe97246-f3fa-4828-aec0-1f32d50e9f80)  
&nbsp;

URL 2 witch is a empeded Player inside a Webpage:

[http://www.srf.ch/player/tv/1-gegen-100/video/schlagfertig-und-bisher-erfolgreich-michael-inderkum-aus-altdorf?id=abe97246-f3fa-4828-aec0-1f32d50e9f80](http://www.srf.ch/player/tv/1-gegen-100/video/schlagfertig-und-bisher-erfolgreich-michael-inderkum-aus-altdorf?id=abe97246-f3fa-4828-aec0-1f32d50e9f80)

&nbsp;

If i use the URL 2, it results in a "the media server responded with an error" as soon as i like to Create an EpisodeObject.

```
2014-03-29 18:56:55,504 (11070a000) :  DEBUG (networking:167) - Fetching 'http://www.srf.ch/player/tv/sendung/1-gegen-100?id=6fd27ab0-d10f-450f-aaa9-836f1cac97bd' from the HTTP cache
2014-03-29 18:56:55,563 (11070a000) :  WARNING (runtime:1059) - Generating a callback path for a function with no route: 
2014-03-29 18:56:55,567 (11070a000) :  DEBUG (services:602) - No service found for URL 'http://www.srf.ch/player/tv/popupvideoplayer?id=52940171-549c-44bf-94f6-4bdbdb168ebf'
2014-03-29 18:56:55,568 (11070a000) :  DEBUG (services:617) - No matching services found for 'http://www.srf.ch/player/tv/popupvideoplayer?id=52940171-549c-44bf-94f6-4bdbdb168ebf'
2014-03-29 18:56:55,569 (11070a000) :  DEBUG (services:41) - Loading service code for Fallback (URLServiceRecord)
2014-03-29 18:56:56,084 (11070a000) :  DEBUG (services:602) - No service found for URL 'http://www.srf.ch/player/tv/popupvideoplayer?id=52940171-549c-44bf-94f6-4bdbdb168ebf'
2014-03-29 18:56:56,088 (11070a000) :  CRITICAL (runtime:964) - Exception when constructing response (most recent call last):
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 945, in construct_response
    el = result._to_xml()
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py", line 613, in _to_xml
    el = Framework.modelling.objects.ModelInterfaceObjectContainer._to_xml(self)
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 382, in _to_xml
    root = Container._to_xml(self)
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 139, in _to_xml
    self._append_children(root, self._objects)
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 145, in _append_children
    el = obj._to_xml()
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py", line 531, in _to_xml
    if self._core.services.function_in_service_is_deferred(Framework.components.services.MEDIA_OBJECTS_FUNCTION_NAME, service):
  File "/Users/busa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/services.py", line 556, in function_in_service_is_deferred
    service.sandbox.context.import_values(values)
AttributeError: 'NoneType' object has no attribute 'sandbox'

2014-03-29 18:56:56,088 (11070a000) :&nbsp; DEBUG (runtime:1021) - Unable to handle response type: \<class ‘Framework.modelling.objects.MediaContainer’\>  
2014-03-29 18:56:56,090 (11070a000) :&nbsp; DEBUG (runtime:918) - Response: [500] MediaContainer, 0 bytes
```

If i use the&nbsp; URL 2, i can create the EpisodeObjects and they get listet, but as soon as i try to play an Episode, it results in an "Cannot load M3U8: 404 not found"

&nbsp;

Would be great if somebody could help me with that Problem.

&nbsp;

Greetings

&nbsp;

busa

---

<div class="post-metadata">

### Author: ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)
#### Post date: [March 29, 2014, 11:00pm UTC](https://forums.plex.tv/t/problem-with-episodeobject-and-video-url/62007/2 "2014-03-29T23:00:12Z")

</div>

Sounds like either:

- there is not an existing URL Service for that website
- the URL Service which handles that website is in need of updating

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 21, 2019, 1:42am UTC](https://forums.plex.tv/t/problem-with-episodeobject-and-video-url/62007/3 "2019-12-21T01:42:52Z")

</div>

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