def METHOD_NAME(self, videoid_next_ep, info_next_ep, metadata, is_played_from_strm):
    """Get the data to send to Up Next add-on"""
    upnext_info = {
        'current_episode': _upnext_curr_ep_info(self.videoid),
        'next_episode': _upnext_next_ep_info(videoid_next_ep, *info_next_ep)
    }
    if is_played_from_strm:
        # The current video played is a STRM, then generate the path of next STRM file
        file_path = G.SHARED_DB.get_episode_filepath(
            videoid_next_ep.tvshowid, videoid_next_ep.seasonid, videoid_next_ep.episodeid)
        url = xbmcvfs.translatePath(file_path)
    else:
        url = common.build_url(videoid=videoid_next_ep,
                               mode=G.MODE_PLAY,
                               params={'profile_guid': G.LOCAL_DB.get_active_profile_guid()})
    upnext_info['play_url'] = url
    if 'creditsOffset' in metadata[0]:
        upnext_info['notification_offset'] = metadata[0]['creditsOffset']
    return upnext_info