Billinghurst added a comment.

  (Noting that I have already shifted the previously mentioned file and deleted 
at Commons as it was a copyright violation)
  
  It would see that File: is needed
  
  - -tosite:  without "File:"
  
    billinghurst@tools-sgebastion-07:~$ python3 scripts/imagetransfer.py 
-tosite:wikisource:en testfile.pdf
    
    1 pages read
    0 pages written
    0 pages skipped
    Execution time: 0 seconds
    Read operation time: 0.0 seconds
    Script terminated successfully.
  
  
  
  - -tosite with "File:
  
    billinghurst@tools-sgebastion-07:~$ python3 scripts/imagetransfer.py 
-tosite:wikisource:en file:testfile.pdf -user:billinghurst -keepname
    ------------------------------------------------------------
    0. Found image: [[File:Testfile.pdf]]
    ============================================================
    The image is already shared on commons:commons.
    
    1 pages read
    0 pages written
    0 pages skipped
    Execution time: 0 seconds
    Read operation time: 0.0 seconds
    Script terminated successfully.
  
  So I am not certain what the first example is reading, though without the 
file: apparently nothing is attempted/seen

TASK DETAIL
  https://phabricator.wikimedia.org/T279232

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Billinghurst
Cc: Xqt, Aklapper, pywikibot-bugs-list, Billinghurst, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, 
Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, 
Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to