Closed chazragg closed 6 years ago
Hi !
Sorry for the late response, I was being disconnected for about 2 weeks.
I know EssentialNowPlaying, and yes they have made an external program to save the files. I prefer to not do that because it require to launch something else, not just the browser.
I recently moved UNP to AngularJS, and made it so everything inside the "common" directory is now totally independant of Firefox. Basically, the main task to do now for chrome is about finding a good way to write a file with an extension. Here we talk about a way to do this: https://github.com/Wykks/Untamed-Now-Playing-Next/issues/40. CuGBabyBeaR made this : https://github.com/CuGBabyBeaR/UNPPlayground
But it was 10 month ago, things are changing theses days with WebExtensions; Firefox/Chrome are already compatible with this API. And Firefox will drop their Add-on SDK (which is currently used in UNP to write files).
So until a solution show up for writing files with WebExtensions, I don't think I will do anything for a Chrome extension. https://webextensions.uservoice.com/forums/315663-webextension-api-ideas/suggestions/9438246-support-os-file-or-at-least-chrome-filesystem https://discourse.mozilla-community.org/t/accessing-filesystem-in-webextensions-addon/4034/6
Hello, I would like to make a chrome extension that send the current song to a webservice. It looks like the only pain point is to write to a file and I would not need it.
In that case, what need to be done or changed to port this plugin to chrome. thanks !
Hi !
As I said above :
I recently moved UNP to AngularJS, and made it so everything inside the "common" directory is now totally independant of Firefox.
So in theory you should be able to use everything inside the directory data/common/
(or just data/common/websites-support
, since you won't have the same options page) and also adapt browserFunc.js
for chrome (which is used to communicate beetween pages workers and the extension itself).
But keep in mind that as of today, there is still some code inside lib/nowPlayingIO.js
not only related to writing files (eg: processNPVar
func, which replace %s%,...). But nothing
significant there. I can move this stuff to common files if needed.
I can separate the data/common/
directory in another repo, in order to make it easier for you to keep your extension up to date :)
Good luck ! :smiley:
(Edit: I'll probably dev an desktop app in order to be able to write files, juste like EssentialNowPlaying if the WebExtensions situation doesn't progress...)
Thanks for the detailed explanation. Sure having a separate repo would help a lot but doing it just for me could be overkill.
To tell more about my project : I just released www.songq.tv, a free music player for streamers with overlay customization. (it's using React)
I guess the most important part for me will be the websites-support code.
Very interesting :) I indent to separate the common directory anyway, when I'll revive the chrome extension ... Someday :smile:
By the way, just so you know, websites-support are unit tested here (with nightmarejs) :
https://github.com/Wykks/UNP-tests
(Only 11 websites for now, but better than nothing !)
Great ! hope Ill be able to add more tests on the occasion
On Jul 31, 2016 3:42 PM, "Wykks" notifications@github.com wrote:
Very interesting :) I indent to separate the common directory anyway, when I'll revive the chrome extension ... Someday 😄
Bay the way, just so you know, websites-support are unit tested here :
https://github.com/Wykks/UNP-tests
(Only 11 websites tested for now, but better than nothing !)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wykks/Untamed-Now-Playing-Next/issues/93#issuecomment-236430624, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqChhHVfC7_Swsp2GPoNeAHy-GsJs1dks5qbKZMgaJpZM4IOhiX .
i hate to bring up an old thread but do you think there is any way to use the download API for google chrome so you create a file that we download to out drives rather than trying to create the file straight to the hard disk ?
Yeah it should works, but, this way, it will ask the user everytime the song changes (or spam the download section of chrome when the setting is set to "don't ask when downloading a file")... Not good
fair point suppose only real way is a 3rd party program. maybe a plugin for OBS that talks to your extension ? that way it keeps it more together
An OBS plugin could work, but UNP can be used with something else than OBS
any news
No sorry, even UNP for Firefox is not in good shape for the future since Firefox is going to drop the SDK which UNP rely on... I think I'll have to create an external software to write the file...
i understand that you are having trouble with making a chrome extension as there is no way to write a file from an extention to out HDD with chrome but i was wondering how the progression is going
if it is any help https://github.com/pendo324/EssentialNowPlaying this tool managed to do it but i believe they use programs installed on out machieans in order to save and dispaly the text