Youtube upload from console + set copyright / license - youtube-data-api

I want to upload a video to Youtube from console. I found youtube-upload which works fine, except that it doesn't show any way to set the license (I want to set the CC-BY license).
I also tried to tweak the script. But apparently, the Youtube API which the script uses doesn't provide any way to set the license.
Is there any other way to set the CC license when uploading a video from the console?

You can update status.license = creativeCommon
as described. The code you are using is a python script, so you can try the official samples (resumable_upload). You will just add license = "creativeCommon" in status dictionary.

Related

Office JS Save text as xml file Fails

I want to ask if Office JS is allowed to save local files?
In old question/answers I found various solutions like
FileSaver.js
Download2.js
I tried both but it did not help.
Both are using the technique of embedding a download link in the HTML document dispatching the event programmatically using JS. But click event fails with error = Access is denied
I want to ask if
Office JS API is allowed to create files to local path?
if NO was it allowed in older versions?
If YES do I need to make some configuration changes on Windows 10 desktop PC?
If allowed Please help how to achieve that
I want to create an XML file using JavaScript and save it to local path
thanks

Adding a plugin link for "a plugin is needed to display this content"

I'm embedding VLC in to a webpage, I want the user to be prompted to download VLC if it isn't already installed. I'm using Firefox to test with, if VLC isn't installed it shows a grey box with the text "a plugin is needed to display this content", is it possible to add a download link to this window?
Typically, you are using the "embed" tag to define a plugin in a html page, which allows the inclusion of the optional argument "pluginspage", which you should set to our website (aka "http://www.videolan.org/vlc/") like in our sample code for the web plugin.
Alternatively, you could set "pluginurl" for the direct download link, but given that this would be different URLs for different operating systems, the argument above is the proper way.
Regrettably, I can't say if this argument is actually respected by Firefox, but it should be.

JasperReport/Aspose.word - Background image working with pdf but doesn't with word

As explained in the title. I'm using aspose.word extension for JasperReports. When I create a report with the PDF format, everything works fine; but, when I export the same jrxml file in word .doc format I cannot see the background image.
I was wondering if aspose.word does support background images or not. I didn't manage to get this point in the documentation.
EDIT: It came out from Aspose Development Team that Aspose.word has a bug and actually doesn't show background images.
Just for reference for any one facing this issue in future. The issue with issue id:WORDSJSP-146 has been logged in our issue tracking system to fix this bug.
Also, following thread is posted in Aspose forum for the above issue http://www.aspose.com/community/forums/thread/556318/background-image-not-showing.aspx.
P.S. I am social media developer at Aspose.

Use Firefox 'print' or 'save as' features using Selenium WebDriver

I would like to programatically instruct Firefox to visit a list of URLs (defined in a text file, for instance) and for each of them save the page to disk or print it.
I know Selenium provides a feature to capture a screenshot of the page, but I would like to know if it's possible to use browser's native saving and printing features.
If Selenium does not provide such features, would any other tool allow me to define a script to be executed by Firefox and achieve similar results?
It is possible to enable silent printing in firefox to print to the default printer, bypassing the print dialog.
The required firefox preference is print.always_print_silent, and can be setup with selenium like so:
import org.openqa.selenium.JavascriptExecutor;
/* ... */
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("print.always_print_silent", true);
WebDriver driver = new FirefoxDriver(profile);
Now simply navigate to a web page and call print using javascript:
driver.get("http://www.google.com");
((JavascriptExecutor)driver).executeScript("window.print();");
Additionally, couple this with a free PDF printer such as novaPDF to print without displaying the Save as dialog and automatically save a PDF to a predefined location.
If you are fine with png format, you can take full page screenshot.
import selenium.webdriver
import selenium.common
options = selenium.webdriver.firefox.options.Options()
# options.headless = True
with selenium.webdriver.Firefox(options=options) as driver:
driver.get('http://google.com')
time.sleep(2)
root=driver.find_element_by_tag_name('html')
root.screenshot('full page screenshot.png')
Normally you would do this using Sikuli API. The open source community (a.k.a. Mozilla foundation) is working on a project called Marionette that supposedly will enable you do do these things without using screenshot matching but it's still alpha and they are still working on it and Chrome and IE haven't signed onto it yet.
It should be noted that on native file downloads, you don't really need to test the browser functionality of the already well tested save-as dialog. What Selenium testers usually do is just download the file with Apache HttpUtils or something similar and just bypass the browser on the download step. Then you don't need to use the Save-As dialog and it will work cross-browser. Just use selenium to get the download URL and download it with Java code instead.
Maybe this can helps you...
https://stackoverflow.com/a/64987078/6003328
I made this using python...
Basically, I change the about:config settings for each print, adjusting the filename of the pdf to be created, and setting the printer as always_print_silent: true...

audio streaming extention with no save option? (joomla 1.0)

I need to publish a audio file that I want to make available to
* listen and
* not to download
any idea how to do it? Is there any free joomla extention plugin for that?
Something where user cannot save the audo using any webbrowser plugin like DownloadHelper etc.
The easiest way I can think of is to use the JoomlaWorks extension AllVideos. It has support for audio files and very easy to set up and use.

Resources