54f65ae87d9d0c8bb4d61d429dc323debf831b70,homeassistant/components/media_player/squeezebox.py,SqueezeBoxDevice,media_image_url,#SqueezeBoxDevice#,201

Before Change


         Image url of current playing media. 
        if "artwork_url" in self._status:
            return self._status["artwork_url"]
        return ("http://{server}:{port}/music/current/cover.jpg?"
                "player={player}").format(server=self._lms.host,
                                          port=self._lms.http_port,
                                          player=self._id)

    @property
    def media_title(self):
         Title of current playing media. 

After Change


    def media_image_url(self):
         Image url of current playing media. 
        if "artwork_url" in self._status:
            media_url = self._status["artwork_url"]
        else:
            media_url = ("/music/current/cover.jpg?"
                         "player={player}&"
                         "nocache={nocache}").format(
                             player=self._id,
                             nocache=hash(self.media_title))

        base_url = "http://{server}:{port}/".format(server=self._lms.host,
                                                    port=self._lms.http_port)

        return urllib.parse.urljoin(base_url, media_url)

    @property
    def media_title(self):
         Title of current playing media. 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 54f65ae87d9d0c8bb4d61d429dc323debf831b70
Time: 2016-01-20
Author: erik.eriksson@yahoo.com
File Name: homeassistant/components/media_player/squeezebox.py
Class Name: SqueezeBoxDevice
Method Name: media_image_url


Project Name: comic/grand-challenge.org
Commit Name: 4cecfce9ce7e30eb0a1b952d63986785c0806034
Time: 2017-12-06
Author: jamesmeakin@gmail.com
File Name: app/comicsite/core/urlresolvers.py
Class Name:
Method Name: reverse


Project Name: IndicoDataSolutions/finetune
Commit Name: 93ee96aadbe0decde87e9353b8726550996291f7
Time: 2019-05-14
Author: benlt@hotmail.co.uk
File Name: finetune/util/download.py
Class Name:
Method Name: download_data_if_required