2022-10-03, 13:40
(2022-10-03, 12:56)arneson Wrote:Tried with the 4 lines but i got an addon error as a result. I assume indentation, nesting and stuff thats above my head does matter in the config file.(2022-10-02, 20:52)ReaLx3m Wrote: Hey there,The page for Dolby Atmos is not in the content of the "explore" page if it is called from the TIDAL2 addon.
Been using the addon for some time now, and had HiFi subscription, which i recently upgraded to HiFi Plus but cant seem to get it recognized by the addon. In "session Info" it still shows as just HiFi.
I tried logging out and then redid the device selection(TV Dolby Atmos) and the loging in, but looks like no cookie for me. Cant see any dolby atmos section in "explore", though if i add a dolby atmos album to favorites through my phone it will play just fine through Tidal2 addon.
Is this the intended behaviour, or am i missing some additional step that i need to take to make things right?
But you can add it manually as well as the "Masters" and "360" pages.
Open the main.py file in the TIDAL2 sources and add this 4 lines before the last line in the "page" function:
python:
@plugin.route('/page/<page_url>')
def page(page_url):
json = session._map_request(path=unquote_plus(page_url), params={'locale': settings.locale, 'deviceType': 'BROWSER'}, ret='json')
items = []
for row in json['rows']:
for m in row['modules']:
if m['type'] == 'PAGE_LINKS':
for p in m['pagedList']['items']:
items.append(DirectoryItem(p['title'], plugin.url_for(page, quote_plus(p['apiPath']))))
elif m.get('pagedList', {}).get('dataApiPath', None):
items.append(DirectoryItem(m['title'], plugin.url_for(page_data, quote_plus(m['pagedList']['dataApiPath']), m['type'])))
elif m.get('showMore', None):
items.append(DirectoryItem(m['title'], plugin.url_for(page, quote_plus(m['showMore']['apiPath']))))
elif not m['type'] in ['TEXT_BLOCK', 'EXTURL']:
if m['title']:
items.append(DirectoryItem(m['title'], plugin.url_for(module, page_url, quote_plus(repr(m['title'])), quote_plus(m['type']))))
elif 'items' in m:
items += get_module_items(m)
else:
items.append(DirectoryItem(m['type'], plugin.url_for(module_type, page_url, quote_plus(m['type']))))
if page_url == quote_plus('pages/explore'):
add_directory('Dolby Atmos', plugin.url_for(page, quote_plus('pages/dolby_atmos')))
add_directory('Masters (MQA)', plugin.url_for(page, quote_plus('pages/masters')))
add_directory('360', plugin.url_for(page, quote_plus('pages/360')))
session.add_list_items(items, end=True)
Then you wll have access to this content.
I add this in the next version of TIDAL2.
arneson
Then just copied the whole section and replaced it, and now it works. Have Atmos, 360 and MQA available.
Thank you for the assistance.
I didnt expect that Atmos tracks would play in 5.1 from desktop pc, but your addon makes that possible too.
So additional props to you for that , wouldnt be possible with my config without you continuing the development of this great piece of software.