Merge branch 'master' into upcoming/v4.6
This commit is contained in:
commit
0f258b6118
7
.github/ISSUE_TEMPLATE/bug_report.md
vendored
7
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -24,4 +24,9 @@ If applicable, add error messages and tracebacks to help explain your problem.
|
|||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|
||||||
<!-- please also see https://instaloader.github.io/contributing.html for how to report a bug -->
|
<!--
|
||||||
|
Also see https://instaloader.github.io/contributing.html for how to report a bug.
|
||||||
|
|
||||||
|
Please understand that a bug issue that lacks the required information cannot be
|
||||||
|
processed.
|
||||||
|
-->
|
||||||
|
10
.github/ISSUE_TEMPLATE/question.md
vendored
10
.github/ISSUE_TEMPLATE/question.md
vendored
@ -7,6 +7,12 @@ labels: question
|
|||||||
|
|
||||||
Your question here...
|
Your question here...
|
||||||
|
|
||||||
<!-- Please see our documentation: https://instaloader.github.io/ -->
|
<!--
|
||||||
|
People will be better able and more motivated to provide help if your question
|
||||||
|
|
||||||
<!-- Basic questions regarding Instaloader's usage might be more appropriate to ask on Stack Overflow -->
|
- has a concise and meaningful title,
|
||||||
|
- is not covered by the documentation: https://instaloader.github.io/,
|
||||||
|
- is actually related to Instaloader (this is not a Python help forum),
|
||||||
|
- has not already been answered here or on other sites such as Stack Overflow: https://stackoverflow.com/questions/tagged/instaloader,
|
||||||
|
- is written in a polite and welcoming tone.
|
||||||
|
-->
|
||||||
|
@ -23,7 +23,7 @@ def get_cookiefile():
|
|||||||
|
|
||||||
def import_session(cookiefile, sessionfile):
|
def import_session(cookiefile, sessionfile):
|
||||||
print("Using cookies from {}.".format(cookiefile))
|
print("Using cookies from {}.".format(cookiefile))
|
||||||
conn = connect(cookiefile)
|
conn = connect(f"file:{cookiefile}?immutable=1", uri=True)
|
||||||
try:
|
try:
|
||||||
cookie_data = conn.execute(
|
cookie_data = conn.execute(
|
||||||
"SELECT name, value FROM moz_cookies WHERE baseDomain='instagram.com'"
|
"SELECT name, value FROM moz_cookies WHERE baseDomain='instagram.com'"
|
||||||
|
@ -11,6 +11,15 @@ Instaloader's development is organized on
|
|||||||
`GitHub <https://github.com/instaloader/instaloader>`__, where Issues and Pull
|
`GitHub <https://github.com/instaloader/instaloader>`__, where Issues and Pull
|
||||||
Requests are discussed.
|
Requests are discussed.
|
||||||
|
|
||||||
|
Answering Questions
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
The easiest way to help out is to answer questions. If you are interested in
|
||||||
|
answering questions regarding Instaloader, good places to start are
|
||||||
|
|
||||||
|
- `Questions tagged 'instaloader' on Stack Overflow <https://stackoverflow.com/questions/tagged/instaloader>`__,
|
||||||
|
- `Instaloader Issues labeled 'question' <https://github.com/instaloader/instaloader/issues?q=is%3Aissue+is%3Aopen+label%3Aquestion>`__.
|
||||||
|
|
||||||
Reporting Bugs
|
Reporting Bugs
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
@ -41,22 +50,39 @@ reporting a problem, please keep the following in mind:
|
|||||||
Writing Code or Improving the Documentation
|
Writing Code or Improving the Documentation
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
Changes of the Instaloader source can be proposed as a
|
Improvements of the Instaloader source or its documentation can be proposed as a
|
||||||
`Pull Request <https://github.com/instaloader/instaloader/pulls>`__. There are only
|
`Pull Request <https://github.com/instaloader/instaloader/pulls>`__.
|
||||||
few things to consider:
|
|
||||||
|
|
||||||
- Base your Pull Request on the ``master`` branch if it fixes a bug,
|
- Please base your Pull Request on
|
||||||
or the ``upcoming/v4.X`` branch (if it exists at the moment of submitting the PR)
|
|
||||||
otherwise.
|
|
||||||
|
|
||||||
- We use `Pylint <https://www.pylint.org/>`__ for error and syntax checking of
|
- ``master``, which will be released with the next minor release, if it is
|
||||||
the source and `MyPy <https://github.com/python/mypy>`__ for type checking.
|
|
||||||
Beware that sometimes it might be better to disable a warning rather than
|
|
||||||
adapting the code to a tool's desires.
|
|
||||||
|
|
||||||
- The documentation source is located in the ``docs`` folder. The file
|
- a bug fix that does not require extensive testing,
|
||||||
``cli-options.rst`` is merely an RST-formatted copy of ``instaloader --help``
|
- an improvement to the documentation,
|
||||||
output, of which the source is in ``instaloader/__main__.py``.
|
|
||||||
|
- ``upcoming/v4.X``, if it is
|
||||||
|
|
||||||
|
- a new feature,
|
||||||
|
- a bug fix that does require thorough testing before being released to a
|
||||||
|
final version.
|
||||||
|
|
||||||
|
- All Pull Requests are analyzed by `Pylint <https://www.pylint.org/>`__ for
|
||||||
|
error and syntax checking of the source and
|
||||||
|
`Mypy <https://github.com/python/mypy>`__ for type checking. You can run them
|
||||||
|
locally with::
|
||||||
|
|
||||||
|
pylint instaloader
|
||||||
|
mypy -m instaloader
|
||||||
|
|
||||||
|
- Improvements to the documentation are very welcome. The documentation is
|
||||||
|
created with `Sphinx <https://www.sphinx-doc.org/en/2.0/>`__, version 2,
|
||||||
|
and can be build locally using::
|
||||||
|
|
||||||
|
make -C docs html
|
||||||
|
|
||||||
|
- Feel free to create an issue to make sure someone from the Instaloader team
|
||||||
|
agrees that the change might be an improvement, and is happy with your basic
|
||||||
|
proposal, before working on a pull request.
|
||||||
|
|
||||||
Proposing Features
|
Proposing Features
|
||||||
------------------
|
------------------
|
||||||
|
@ -1181,10 +1181,13 @@ class Instaloader:
|
|||||||
self.save_metadata_json(json_filename, profile)
|
self.save_metadata_json(json_filename, profile)
|
||||||
|
|
||||||
# Catch some errors
|
# Catch some errors
|
||||||
if profile.is_private and (tagged or igtv or highlights or posts):
|
if tagged or igtv or highlights or posts:
|
||||||
if not self.context.is_logged_in:
|
if (not self.context.is_logged_in and
|
||||||
|
profile.is_private):
|
||||||
raise LoginRequiredException("--login=USERNAME required.")
|
raise LoginRequiredException("--login=USERNAME required.")
|
||||||
if not profile.followed_by_viewer and self.context.username != profile.username:
|
if (self.context.username != profile.username and
|
||||||
|
profile.is_private and
|
||||||
|
not profile.followed_by_viewer):
|
||||||
raise PrivateProfileNotFollowedException("Private but not followed.")
|
raise PrivateProfileNotFollowedException("Private but not followed.")
|
||||||
|
|
||||||
# Download tagged, if requested
|
# Download tagged, if requested
|
||||||
|
Loading…
Reference in New Issue
Block a user