Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON support for new playlist format #8

Open
askotx opened this issue Jun 22, 2019 · 0 comments
Open

JSON support for new playlist format #8

askotx opened this issue Jun 22, 2019 · 0 comments

Comments

@askotx
Copy link

askotx commented Jun 22, 2019

Is it possible to add support for JSON format, I think it could be something like:

#if legacy then
    playlist_entry := playlist_entry_rom_path . "`n"
                    . playlist_title . "`n"
                    . core_path . "`n"
                    . "DETECT" . "`n"
                    . "DETECT" . "`n"
                    . playlist_name . ".lpl" . "`n"
#else
#this before start loop array
header := '"{`n"
 """version""":"""1.0""",`n"
 """items""": [`n"
playlist_file.Write(header)
#in array
playlist_entry :=  "{". "`n"
   . """path""": """. playlist_entry_rom_path . """,". "`n"
   . """label": """ . playlist_title . """,". "`n"
   . """core_path""": """. core_path . """,. "`n"
   . """core_name""": ""DETECT""",. "`n"
   . """crc32""": """DETECT""",. "`n"
   . """db_name""": """ . playlist_name .".lpl""". "`n"
   . "},". "`n"
 
playlist_file.Write(playlist_entry)

  #after array
  # remove last "," comma, I don't know the command
footer:=  "  ]`n"
  "}`n"
playlist_file.Write(footer)
#end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant